From: Eric S. Raymond Date: Wed, 6 Dec 1995 04:50:19 +0000 (+0000) Subject: We're RPM-ready. X-Git-Tag: 2.0~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e178eb14f7ebbcc172d2e93813165d248cb65da2;p=cstrings.git We're RPM-ready. --- diff --git a/Makefile b/Makefile index d7546ca..69d361d 100644 --- 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)