~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CVS revision numbers, stored as `cvs2svn:cvs-rev' properties, are a
[sgt/halibut]
/
doc
/
Makefile
diff --git
a/doc/Makefile
b/doc/Makefile
index
e660d41
..
cfdd943
100644
(file)
--- a/
doc/Makefile
+++ b/
doc/Makefile
@@
-1,17
+1,23
@@
-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
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)
+
+halibut.1: manpage.but
+ $(HALIBUT) --man=halibut.1 manpage.but
-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
+install:
+ $(INSTALL) -m 644 halibut.1 $(man1dir)/halibut.1
clean:
clean:
- rm -f *.html *.txt *.hlp *.cnt *.1
+ rm -f *.html *.txt *.hlp *.cnt *.1
*.info* *.ps *.pdf