]> thyrsus.com Git - hexdump.git/commitdiff
SGML conversion.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Jul 2002 17:22:47 +0000 (17:22 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Jul 2002 17:22:47 +0000 (17:22 +0000)
Makefile
hexdump.spec

index 9b5c4ade901b5803304c51432de15fd76e92ab5f..218dddbde11a2779ae71ab6841db23e4e974ff29 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ VERS=1.2
 hex: hex.c
        $(CC) -DVERSION=\"$(VERS)\" -O hex.c -o hex
 
-SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec
+SOURCES = READ.ME Makefile hex.c hex.sgml hex.1 hex.lsm hex.spec
 
 hex-$(VERS).tar.gz:
        @ls $(SRC) | sed s:^:hex-$(VERS)/: >MANIFEST
@@ -14,6 +14,17 @@ hex-$(VERS).tar.gz:
        (cd ..; tar -czvf hex/hex-$(VERS).tar.gz `cat hex/MANIFEST`)
        @(cd ..; rm hex-$(VERS))
 
+hex.1: hex.sgml
+       docbook2man hex.sgml
+
+install: hex.1 uninstall
+       cp hex /usr/bin
+       cp hex.1 /usr/share/man/man1/hex.1
+
+uninstall:
+       rm -f /usr/bin/hex /usr/share/man/man1/hex.
+       rm -f hex.1 manpage.links manpage.refs
+
 clean:
        rm -f hex hex-$(VERS).tar.gz *.rpm
 
index 29507929e112be2e0d3fc43966513f15b08349bf..6543212dd1dd588eb22e33b872fcc899facc649b 100644 (file)
@@ -16,10 +16,8 @@ Hex dumper that does CP/M format and EBCDIC; has internationalization.
 make
 
 %install
-rm -f /usr/bin/hex
-cp hex /usr/bin
-cp hex.1 /usr/man/man1/hex.1
+make install
 
 %files
-/usr/man/man1/hex.1
+/usr/share/man/man1/hex.1
 /usr/bin/hex