]> thyrsus.com Git - bluemoon.git/commitdiff
Made this RPM-ready.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 6 Dec 1995 03:52:29 +0000 (03:52 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 6 Dec 1995 03:52:29 +0000 (03:52 +0000)
Makefile

index 2330cdaa7c742921778096c9b35fb6a12aea710b..04891fb2832c8096d1ebe3d5f4afe4194ea56dde 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
 # Makefile for blue, the Blue Moon solitaire game
 
-SOURCES = READ.ME Makefile blue.c blue.c.orig blue.6 blue.lsm
+# Note: When the version changes, you also have to change
+#  * the name of the containing directory
+#  * the RPM spec file
+V=2.2
+
+SOURCES = READ.ME Makefile blue.c blue.c.orig blue.6 blue.lsm *.spec
 
 blue: blue.c
-       cc -O blue.c -lcurses -o blue
+       cc -O blue.c -lncurses -o blue
 
 blue.tar: $(SOURCES)
-       tar -cvf blue.tar $(SOURCES)
+       (cd ..; tar -cvf blue-$(V)/blue.tar `echo $(SOURCES) | sed "/ /s// blue-$(V)\//g"`)
 blue.tar.gz: blue.tar
        gzip blue.tar
 
@@ -15,3 +20,8 @@ blue.shar: $(SOURCES)
 
 clean:
        rm -f blue blue.tar blue.tar.gz blue.shar *~
+
+rpm: blue.tar.gz
+       cp blue.tar.gz /usr/src/SOURCES/blue-$(V).tar.gz
+       cp blue.spec /usr/src/SPECS/blue-$(V)-1.spec
+       rpm -ba blue-$(V)-1.spec