From e7113208b4d32d8c4c46ee8fb6c8e5b90c161db2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Dec 1995 04:15:33 +0000 Subject: [PATCH] Fix the initial-file glitch. --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 33e87e5..950e6f1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ # Makefile for the cstrings tool by Eric S. Raymond +# Note: When the version changes, you also have to change +# * the name of the containing directory +# * the RPM spec file +V=2.0 + CFLAGS=-O LDFLAGS=-s @@ -12,9 +17,16 @@ cstrings: cstrings.l clean: rm -f lex.yy.c cstrings cstrings.c *~ cstrings.shar cstrings.tar.gz +SOURCES= cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec + cstrings.tar.gz: - tar -cvf cstrings.tar cstrings.1 cstrings.lsm Makefile cstrings.l + (cd ..; tar -cvf cstrings-$(V)/cstrings.tar `echo $(SOURCES) | sed "/\(^\| \)/s// cstrings-$(V)\//g"`) gzip cstrings.tar -cstrings.shar: cstrings.1 Makefile cstrings.l - shar cstrings.1 Makefile cstrings.l cstrings.lsm >cstrings.shar +cstrings.shar: $(SOURCES) + shar $(SOURCES) >cstrings.shar + +rpm: cstrings.tar.gz + cp cstrings.tar.gz /usr/src/SOURCES/cstrings-$(V).tar.gz + cp cstrings.spec /usr/src/SPECS/cstrings-$(V)-1.spec + rpm -ba cstrings-$(V)-1.spec -- 2.43.0