diff --git a/LDP/builder/db2omf/doc/Makefile b/LDP/builder/db2omf/doc/Makefile new file mode 100644 index 00000000..4d901b12 --- /dev/null +++ b/LDP/builder/db2omf/doc/Makefile @@ -0,0 +1,36 @@ +MAN_DIR = $(DESTDIR)/usr/share/man/man1 +DOC_DIR = /usr/share/doc/db2omf + +INSTALLDIR = install -d +INSTALLDOC = install -p -m 644 + +all: build + +build: man html + +man: db2omf.1 + +html: db2omf.html + +db2omf.1: db2omf.pod + pod2man db2omf.pod db2omf.1 + +db2omf.html: db2omf.pod + pod2html --title="db2omf" db2omf.pod > db2omf.html + +install: all + $(INSTALLDIR) $(MAN_DIR) + $(INSTALLDOC) db2omf.1 $(MAN_DIR)/db2omf.1 + $(INSTALLDIR) $(DOC_DIR) + $(INSTALLDOC) db2omf.html $(DOC_DIR)/db2omf.html + +# Publishes the documentation on the official LDP homepage for db2omf. +# You *do* have to enter the password to publish it. +publish: html + scp db2omf.html dmerrill@login.ibiblio.org:/export/sunsite/users/dmerrill/LDP/db2omf/index.html + +clean: + rm -f db2omf.1 + rm -f db2omf.html + rm -f pod2htmd.x~~ + rm -f pod2htmi.x~~