chiark / gitweb /
midend: Allow "new game" to be undone
[sgt-puzzles.git] / Makefile.doc
index 160dad05422a9efe9aae6305e658eab022536f7c..0fd28db5ed51100bf2cbba3e65519dc91c13310e 100644 (file)
@@ -1,2 +1,17 @@
-puzzles.hlp puzzles.txt: puzzles.but
-       halibut --winhelp=puzzles.hlp --text=puzzles.txt puzzles.but
+all: puzzles.chm puzzles.hlp puzzles.txt HACKING
+
+preprocessed.but: puzzles.but
+       sed 's/PREFIX-/$(BINPREFIX)/g' puzzles.but > preprocessed.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]