X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/5dd44dceca3dd3c1a4886dd6a7bdf05924e3447f..36fb1d4542b838da23f1ef785b61154b0b726a63:/doc/Makefile diff --git a/doc/Makefile b/doc/Makefile index 762b1d1..cfdd943 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,16 +1,23 @@ +mandir=$(prefix)/man +man1dir=$(mandir)/man1 + CHAPTERS := $(SITE) blurb intro running input output licence manpage index INPUTS = $(patsubst %,%.but,$(CHAPTERS)) HALIBUT = ../build/halibut -all: Contents.html halibut.1 +all: index.html halibut.1 -Contents.html: $(INPUTS) $(HALIBUT) - $(HALIBUT) --text=halibut.txt --html --info=halibut.info $(INPUTS) +index.html: $(INPUTS) $(HALIBUT) + $(HALIBUT) --text=halibut.txt --html --info=halibut.info \ + --ps=halibut.ps --pdf=halibut.pdf $(INPUTS) halibut.1: manpage.but $(HALIBUT) --man=halibut.1 manpage.but +install: + $(INSTALL) -m 644 halibut.1 $(man1dir)/halibut.1 + clean: - rm -f *.html *.txt *.hlp *.cnt *.1 *.info* + rm -f *.html *.txt *.hlp *.cnt *.1 *.info* *.ps *.pdf