From 4a9fb177eb60d3d21d5e5edbe7bcc926521bfa5a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 11 Jul 2002 00:11:26 +0000 Subject: [PATCH] SGML conversion. --- Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b21db20..0dfdef1 100644 --- 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 -- 2.43.0