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
(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