chiark / gitweb /
Fix completion checking in Killer Solo.
[sgt-puzzles.git] / Makefile.doc
index d127e786fd29f119a55f5411dc1e7d7358abac2a..c7d6946cf1ab43f33f33a07844ff6bf822f0ee85 100644 (file)
@@ -1,7 +1,17 @@
 all: puzzles.hlp puzzles.txt HACKING
 
-puzzles.hlp puzzles.txt: puzzles.but
-       halibut --winhelp=puzzles.hlp --text=puzzles.txt puzzles.but
+preprocessed.but: puzzles.but
+       sed 's/PREFIX-/$(BINPREFIX)/g' puzzles.but > preprocessed.but
 
-HACKING: HACKING.but
-       halibut --text=HACKING HACKING.but
+puzzles.hlp puzzles.txt: preprocessed.but
+       halibut --winhelp=puzzles.hlp --text=puzzles.txt preprocessed.but
+
+HACKING: devel.but
+       halibut --text=HACKING devel.but
+
+chm: puzzles.hhp
+puzzles.hhp: puzzles.but chm.but
+       halibut --html puzzles.but chm.but
+
+clean:
+       rm -f puzzles.hlp puzzles.txt preprocessed.but HACKING *.html *.hh[pck]