aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files 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