chiark / gitweb /
Fix borders on the HTML menu bar.
[sgt-puzzles.git] / Makefile.doc
index 677bc8ecfc163ac33d8f9d647834b581e1507768..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
+
+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]