]> thyrsus.com Git - hexdump.git/commitdiff
RPM generation.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 29 Jun 1998 21:00:46 +0000 (21:00 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 29 Jun 1998 21:00:46 +0000 (21:00 +0000)
Makefile

index 5200c9ecca48a33dc36e2b65bd78d1c9637b54f6..816c629e8409f0f97a12e1ed28638b20e63b553b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,10 @@ hex.shar: $(SOURCES)
 clean:
        rm -f hex hex.tar hex.shar
 
-TOPDIR=/usr/src/rpm
-rpm: hex.tar.gz
-       cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(VERS).tar.gz
-       cp hex.spec $(TOPDIR)/SPECS/hex-$(VERS)-1.spec
-       rpm -ba hex-$(VERS)-1.spec
+RPMROOT=/usr/src/redhat
+RPM = rpm
+RPMFLAGS = -ba
+rpm: hex-$(VERS).tar.gz
+       cp hex-$(VERS).tar.gz $(RPMROOT)/SOURCES/hex-$(VERS).tar.gz
+       cp hex.spec $(RPMROOT)/SPECS/hex.spec
+       $(RPM) $(RPMFLAGS) hex.spec