X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/339cbe09f017eb521e1d623b70a59b902dbc4711..2223c2ddaa32c4979bb95188b87a70bc2abd8dda:/doc/Makefile?ds=sidebyside diff --git a/doc/Makefile b/doc/Makefile index e660d41..7530825 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,17 +1,17 @@ -CHAPTERS := $(SITE) blurb intro running input output licence index +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 -Contents.html: $(INPUTS) $(HALIBUT) - $(HALIBUT) $(INPUTS) - rm -f index.html - ln -s Contents.html index.html - mv output.txt halibut.txt - rm -f output.hlp output.cnt output.1 +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 clean: - rm -f *.html *.txt *.hlp *.cnt *.1 + rm -f *.html *.txt *.hlp *.cnt *.1 *.info* *.ps *.pdf