From 75112f2ba5185dd0d936b63186421db0b1549532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 21:52:45 +0200 Subject: Simplify Makefile --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 3d1e305..b873524 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,11 @@ CFLAGS += -std=c89 -LDFLAGS += -lfl +LDLIBS += -lfl -fref: lex.yy.c - $(CC) $(CFLAGS) -o fref lex.yy.c $(LDFLAGS) +fref: fref.c -lex.yy.c: fref.lex - flex fref.lex +fref.c: fref.lex + flex -ofref.c fref.lex -install: +install: fref install fref /usr/local/bin install -m 644 fref.1 /usr/local/man/man1 -- cgit v1.2.3