chiark / gitweb /
Forbid undo of new-game if it would change the params.
[sgt-puzzles.git] / Makefile.doc
index d127e786fd29f119a55f5411dc1e7d7358abac2a..0fd28db5ed51100bf2cbba3e65519dc91c13310e 100644 (file)
@@ -1,7 +1,17 @@
-all: puzzles.hlp puzzles.txt HACKING
+all: puzzles.chm 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.chm: preprocessed.but
+       halibut --chm=puzzles.chm preprocessed.but
+puzzles.hlp: preprocessed.but
+       halibut --winhelp=puzzles.hlp preprocessed.but
+puzzles.txt: preprocessed.but
+       halibut --text=puzzles.txt preprocessed.but
+
+HACKING: devel.but
+       halibut --text=HACKING devel.but
+
+clean:
+       rm -f puzzles.hlp puzzles.txt preprocessed.but HACKING *.html *.hh[pck]