From: Eric S. Raymond Date: Thu, 7 Dec 1995 20:37:57 +0000 (+0000) Subject: Ready to go. X-Git-Tag: 1.1~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=8a12ecaf3e7c36e2b27750e84534a4d3d828a7df;p=hexdump.git Ready to go. --- diff --git a/Makefile b/Makefile index 6c15a56..4ba4300 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,27 @@ # Makefile for Eric Raymond's silly hex dumper +# Note: When the version changes, you also have to change +# * the name of the containing directory +# * the RPM spec file +V=1.0 + hex: hex.c -hex.tar: READ.ME hex.c hex.1 - tar -cvf hex.tar READ.ME Makefile hex.c hex.1 hex.lsm +SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec + +hex.tar: $(SOURCES) + (cd ..; tar -cvf hex-$(V)/hex.tar `echo $(SOURCES) | sed "/\(^\| \)/s// hex-$(V)\//g"`) hex.tar.gz: hex.tar - gzip hex.tar + gzip -f hex.tar -hex.shar: READ.ME hex.c hex.1 - shar READ.ME hex.c hex.1 hex.lsm >hex.shar +hex.shar: $(SOURCES) + shar $(SOURCES) >hex.shar clean: rm -f hex hex.tar hex.shar + +TOPDIR=/usr/src/rpm +rpm: hex.tar.gz + cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(V).tar.gz + cp hex.spec $(TOPDIR)/SPECS/hex-$(V)-1.spec + rpm -ba hex-$(V)-1.spec