aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-20 21:52:45 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-21 11:19:55 +0200
commit75112f2ba5185dd0d936b63186421db0b1549532 (patch)
treecbf94177a75d94b5c2cd047079ed653f36bd2491
parentdc6de7e4c07d4f7fb7827b4a9a156c2b8f643feb (diff)
downloadfref-75112f2ba5185dd0d936b63186421db0b1549532.tar.gz
Simplify 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