]> thyrsus.com Git - galaxis.git/commitdiff
Macintosh port fix.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 29 Dec 2003 09:10:26 +0000 (09:10 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 29 Dec 2003 09:10:26 +0000 (09:10 +0000)
Makefile
galaxis.c

index 4500758286811353daffd6149c104789116f2af6..dc76420c6d3c34d0c87b7cce5482cf8ae9ffe8ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #      Makefile for the galaxis game
 
-VERS=1.6
+VERS=$(shell sed <galaxis.spec -n -e '/Version: \(.*\)/s//\1/p')
 
 # Flags for use with the Linux ncurses package (recommended)
 CFLAGS = -g -DNDEBUG  # -I/usr/local/include -L/usr/local/lib
@@ -30,7 +30,7 @@ uninstall:
 clean:
        rm -f galaxis galaxis.6 galaxis-*.rpm galaxis-*.tar.gz *~
 
-SOURCES = READ.ME COPYING galaxis.c Makefile galaxis.xml galaxis.spec
+SOURCES = README COPYING galaxis.c Makefile galaxis.xml galaxis.spec
 
 galaxis-$(VERS).tar.gz: $(SOURCES) galaxis.6
        @ls $(SOURCES) galaxis.6 | sed s:^:galaxis-$(VERS)/: >MANIFEST
@@ -39,9 +39,3 @@ galaxis-$(VERS).tar.gz: $(SOURCES) galaxis.6
        @(cd ..; rm galaxis-$(VERS))
 
 dist: galaxis-$(VERS).tar.gz
-
-RPMROOT=/usr/src/redhat
-rpm: dist
-       rpmbuild --define 'myversion $(VERS)' -ta galaxis-$(VERS).tar.gz
-       cp $(RPMROOT)/RPMS/*/galaxis-$(VERS)*.rpm .
-       cp $(RPMROOT)/SRPMS/galaxis-$(VERS)*.src.rpm .
index 22e3a5832221d35fccb4378676eb3ec6d22950a2..cdc4d8090b8f6f87941600d7945b8146ffa06718 100644 (file)
--- a/galaxis.c
+++ b/galaxis.c
@@ -132,7 +132,9 @@ static void intro()
 
     (void) signal(SIGINT,outro);
     (void) signal(SIGINT,outro);
+#ifdef SIGIOT
     (void) signal(SIGIOT,outro);               /* for assert(3) */
+#endif /* SIGIOT */
     if(signal(SIGQUIT,SIG_IGN) != SIG_IGN)
        (void)signal(SIGQUIT,outro);