]> thyrsus.com Git - cstrings.git/commitdiff
We're RPM-ready.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 6 Dec 1995 04:50:19 +0000 (04:50 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 6 Dec 1995 04:50:19 +0000 (04:50 +0000)
Makefile

index d7546cab78eeae962c3e9e2ffddae180ad26e106..69d361d29ce5f63bd5abdc9a4f5f1c2282c6d311 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,12 @@ V=2.0
 CFLAGS=-O
 LDFLAGS=-s
 
+# Stock lex works too, but gives a "Non-portable Character Class\" warning 
+# and may choke on the %option yylineno in cstrings.l
+LEX=flex
+
 cstrings: cstrings.l
-       @echo " Expect a \"Non-portable Character Class\" warning"
-       lex cstrings.l
+       $(LEX) cstrings.l
        mv lex.yy.c cstrings.c
        $(CC) $(CFLAGS) cstrings.c $(LDFLAGS) -o cstrings
 
@@ -19,9 +22,9 @@ clean:
 
 SOURCES= cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec
 
-cstrings.tar:
+cstrings.tar: $(SOURCES)
        (cd ..; tar -cvf cstrings-$(V)/cstrings.tar `echo $(SOURCES) | sed "/\(^\| \)/s// cstrings-$(V)\//g"`)
-cstrings.tar.gz:
+cstrings.tar.gz: cstrings.tar
        gzip -f cstrings.tar
 
 cstrings.shar: $(SOURCES)