Update of /cvsroot/lastbash/lastbash
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27359
Modified Files:
Makefile
Log Message:
Added manpage processing rules.
Index: Makefile
===================================================================
RCS file: /cvsroot/lastbash/lastbash/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile 22 Nov 2006 20:56:32 -0000 1.2
+++ Makefile 6 Dec 2006 15:31:16 -0000 1.3
@@ -32,6 +32,18 @@
all:
@echo "Nothing to make, use 'make install' to perform an installation."
+# Convert the man page
+ps: $(addsuffix .ps, $(man1list))
+
+%.ps: %
+ groff -man -ma4 -Tps $< > $@
+
+html: $(addsuffix .html, $(man1list))
+
+%.html: %
+ groff -man -Thtml $< > $@
+
+# Install section
install: install_dirs install_prog install_man install_data
install_dirs:
@@ -53,6 +65,7 @@
for i in $(proglist); do $(RM) -f $(bindir)/$$i; done
for i in $(man1list); do $(RM) -f $(man1dir)/$$i; done
+# Packaging
pack:
VERSION=`cat VERSION` && cd .. && tar zcvf /tmp/$(name)-$$VERSION.tar.gz $(name)-$$VERSION
|