X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/0a6347b45815f2ef02120d42a3b3dbf79d289b1d..f2ef00b5e1a2a46947aab9e47119aff3e43c9326:/doc/Makefile diff --git a/doc/Makefile b/doc/Makefile index 0e8737a..63299ad 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,13 +1,27 @@ -CHAPTERS := $(SITE) blurb intro running input output licence index +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 +all: index.html halibut.1 + +index.html: $(INPUTS) $(HALIBUT) + $(HALIBUT) --text=halibut.txt --html --info=halibut.info \ + --ps=halibut.ps --pdf=halibut.pdf $(INPUTS) -Contents.html: $(INPUTS) $(HALIBUT) - $(HALIBUT) --text=halibut.txt --html $(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 + rm -f *.html *.txt *.hlp *.cnt *.1 *.info* *.ps *.pdf *.hh* *.chm + +chm: halibut.hhp +halibut.hhp: $(INPUTS) $(HALIBUT) chm.but + $(HALIBUT) --html $(INPUTS) chm.but