]> thyrsus.com Git - galaxis.git/commitdiff
SGML conversion.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Jul 2002 00:11:26 +0000 (00:11 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Jul 2002 00:11:26 +0000 (00:11 +0000)
Makefile

index b21db205159ebdaeacceadeff71dc37043cc31d5..0dfdef162345dd683f6cf1ca967570215c00c685 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 
 # Note: When the version changes, you also have to change
 # the RPM spec file and the LSM.
-VERS=1.3
+VERS=1.4
 
 # Flags for use with the Linux ncurses package (recommended)
 CFLAGS = -g -DNDEBUG  # -I/usr/local/include -L/usr/local/lib
@@ -17,10 +17,20 @@ CC = gcc
 galaxis: galaxis.c
        $(CC) $(CFLAGS) -o galaxis galaxis.c $(TERMLIB)
 
+galaxis.6: galaxis.sgml
+       docbook2man galaxis.sgml
+
+install: galaxis.6 uninstall
+       cp galaxis /usr/bin
+       cp galaxis.6 /usr/share/man/man6/galaxis.6
+
+uninstall:
+       rm -f /usr/bin/install /usr/share/man/man6/install.6
+
 clean:
-       rm -f galaxis galaxis.shar galaxis-*.rpm galaxis-*.tar.gz *~
+       rm -f galaxis galaxis.6 galaxis-*.rpm galaxis-*.tar.gz *~
 
-SOURCES = READ.ME galaxis.c Makefile galaxis.6 galaxis.lsm galaxis.spec
+SOURCES = READ.ME galaxis.c Makefile galaxis.sgml galaxis.lsm galaxis.spec
 
 galaxis-$(VERS).tar.gz: $(SOURCES)
        @ls $(SOURCES) | sed s:^:galaxis-$(VERS)/: >MANIFEST
@@ -28,9 +38,6 @@ galaxis-$(VERS).tar.gz: $(SOURCES)
        (cd ..; tar -czvf galaxis/galaxis-$(VERS).tar.gz `cat galaxis/MANIFEST`)
        @(cd ..; rm galaxis-$(VERS))
 
-galaxis-$(VERS).shar:
-       shar $(SOURCES) >galaxis-$(VERS).shar
-
 dist: galaxis-$(VERS).tar.gz
 
 RPMROOT=/usr/src/redhat