LDP/LDP/texi2db/doc/Makefile

37 lines
819 B
Makefile
Raw Normal View History

MAN_DIR = $(DESTDIR)/usr/share/man/man1
DOC_DIR = /usr/share/doc/texi2db
INSTALLDIR = install -d
INSTALLDOC = install -p -m 644
all: build
build: man html
man: texi2db.1
html: texi2db.html
texi2db.1: texi2db.pod
pod2man texi2db.pod texi2db.1
texi2db.html: texi2db.pod
pod2html --title="texi2db" texi2db.pod > texi2db.html
install: all
$(INSTALLDIR) $(MAN_DIR)
$(INSTALLDOC) texi2db.1 $(MAN_DIR)/texi2db.1
$(INSTALLDIR) $(DOC_DIR)
$(INSTALLDOC) texi2db.html $(DOC_DIR)/texi2db.html
# Publishes the documentation on the official LDP homepage for texi2db.
# You *do* have to enter the password to publish it.
publish: html
scp texi2db.html dmerrill@login.ibiblio.org:/export/sunsite/users/dmerrill/LDP/texi2db/index.html
clean:
rm -f texi2db.1
rm -f texi2db.html
rm -f pod2htmd.x~~
rm -f pod2htmi.x~~