diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-08-17 19:58:53 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-08-17 19:58:53 +0000 |
| commit | 15a4fbd1cdc2cc092bafe85b8ddd8b392bdbda7d (patch) | |
| tree | a46f91b5f5cea352039ab72d07e41297553b824c /Makefile.doc | |
| parent | 200d6533bb315e5f69f926d15724016132cf6232 (diff) | |
| download | puzzles-15a4fbd1cdc2cc092bafe85b8ddd8b392bdbda7d.zip puzzles-15a4fbd1cdc2cc092bafe85b8ddd8b392bdbda7d.tar.gz puzzles-15a4fbd1cdc2cc092bafe85b8ddd8b392bdbda7d.tar.bz2 puzzles-15a4fbd1cdc2cc092bafe85b8ddd8b392bdbda7d.tar.xz | |
For the convenience of Linux package maintainers, add to Makefile.gtk
and Makefile.doc a command-line parameter 'BINPREFIX' which will be
prepended to all the game binary names. E.g. 'make BINPREFIX=sgt-' and
'make BINPREFIX=sgt- install', and correspondingly 'make -f
Makefile.doc BINPREFIX=sgt-'.
Also included in this commit by mistake, changes to singles.c to add
\n to the end of all its debug() statements. I meant to commit that
separately. Oops.
[originally from svn r9606]
Diffstat (limited to 'Makefile.doc')
| -rw-r--r-- | Makefile.doc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.doc b/Makefile.doc index ff67357..c7d6946 100644 --- a/Makefile.doc +++ b/Makefile.doc @@ -1,7 +1,10 @@ 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 + +puzzles.hlp puzzles.txt: preprocessed.but + halibut --winhelp=puzzles.hlp --text=puzzles.txt preprocessed.but HACKING: devel.but halibut --text=HACKING devel.but @@ -11,4 +14,4 @@ puzzles.hhp: puzzles.but chm.but halibut --html puzzles.but chm.but clean: - rm -f puzzles.hlp puzzles.txt HACKING *.html *.hh[pck] + rm -f puzzles.hlp puzzles.txt preprocessed.but HACKING *.html *.hh[pck] |