aboutsummaryrefslogtreecommitdiff
path: root/Recipe
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-01-24 12:05:21 +0000
committerSimon Tatham <anakin@pobox.com>2005-01-24 12:05:21 +0000
commit2040ff96317be6b93ca459c44bfea5d775a18692 (patch)
tree7f8d186b326a0dc6ec06d0f47fce1db8da49c8fc /Recipe
parentd8eb0de7c2210070adcf085e968658cbd00958d6 (diff)
downloadpuzzles-2040ff96317be6b93ca459c44bfea5d775a18692.zip
puzzles-2040ff96317be6b93ca459c44bfea5d775a18692.tar.gz
puzzles-2040ff96317be6b93ca459c44bfea5d775a18692.tar.bz2
puzzles-2040ff96317be6b93ca459c44bfea5d775a18692.tar.xz
First cut at online help under OS X. I just built the HTML version
of the manual using Halibut (with one additional magic tag in the <HEAD> section), stuck it in the right part of the application bundle, referenced it in Info.plist, and added a Help menu. Everything else was automatic. Not bad! [originally from svn r5190]
Diffstat (limited to 'Recipe')
-rw-r--r--Recipe10
1 files changed, 10 insertions, 0 deletions
diff --git a/Recipe b/Recipe
index 36143a9..fa1a78f 100644
--- a/Recipe
+++ b/Recipe
@@ -40,6 +40,16 @@ pattern : [G] WINDOWS COMMON pattern
# Mac OS X unified application containing all the puzzles.
Puzzles : [MX] osx osx.icns osx-info.plist COMMON ALL
+# For OS X, we must create the online help and include it in the
+# application bundle.)
+!begin osx
+Puzzles_extra = Puzzles.app/Contents/Resources/Help/index.html
+Puzzles.app/Contents/Resources/Help/index.html: \
+ Puzzles.app/Contents/Resources/Help puzzles.but
+ halibut --html=$@ puzzles.but
+Puzzles.app/Contents/Resources/Help: Puzzles.app/Contents/Resources
+ mkdir -p Puzzles.app/Contents/Resources/Help
+!end
# The `nullgame' source file is a largely blank one, which contains
# all the correct function definitions to compile and link, but