Also generating and installing an HTML version of the manual

This commit is contained in:
Pierre Pronchery 2012-05-29 23:23:23 +00:00
parent 1a7180e508
commit 96144fc250
3 changed files with 15 additions and 3 deletions

View File

@ -1 +1,2 @@
browser.1
browser.html

View File

@ -1,4 +1,4 @@
TARGETS = browser.1
TARGETS = browser.1 browser.html
PREFIX = /usr/local
DESTDIR =
RM ?= rm -f
@ -12,16 +12,21 @@ all: $(TARGETS)
browser.1: browser.xml
./docbook.sh -P "$(PREFIX)" -- "browser.1"
browser.html: browser.xml
./docbook.sh -P "$(PREFIX)" -- "browser.html"
clean:
$(RM) -- $(browser.1_OBJS)
$(RM) -- $(browser.1_OBJS) $(browser.html_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "browser.1"
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "browser.html"
uninstall:
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "browser.1"
./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "browser.html"
.PHONY: all clean distclean install uninstall

View File

@ -1,4 +1,4 @@
targets=browser.1
targets=browser.1,browser.html
dist=Makefile,docbook.sh,browser.xml
[browser.1]
@ -6,3 +6,9 @@ type=script
script=./docbook.sh
install=
depends=browser.xml
[browser.html]
type=script
script=./docbook.sh
install=
depends=browser.xml