ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/playbook-html/Makefile.am
Revision: 1.1
Committed: Fri Feb 3 07:12:40 2006 UTC (18 years, 5 months ago) by root
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# Content
1
2 FIG = fig/earrow.gif fig/nearrow.gif fig/sarrow.gif fig/swarrow.gif\
3 fig/narrow.gif fig/nwarrow.gif fig/searrow.gif fig/warrow.gif\
4 fig/screen_dia.gif fig/book.gif fig/stairdown.gif fig/stairup.gif
5
6 EXTRA_DIST = handbook.shtml chap1.html chap2.shtml chap3.shtml\
7 chap4.shtml chap5.shtml chap6.shtml chap7.html appA.html appB.html\
8 appC.shtml bonus-extract char-extract spellpath-extract\
9 skills2-extract empty.pbm statskmod-extract treas1-extract\
10 treas2-extract skills-extract items-extract generic-extract\
11 sorter levels-extract gods-extract $(FIG)
12 #
13 # This are automatically generated files
14 #
15 HTML = gods.html appC.html stats.gif potion.html flesh.html food.html rings.html \
16 books.html money.html shopmat.html shop.html chap6.html lockpicks.html \
17 statskmod.html version.html skill_stat.html chap5.html runeshock.html \
18 runemark.html runefire.html runefrost.html runegen.html runedeath.html \
19 runeblast.html cauldron.html altar.html spellpath.html chap4.html \
20 corpse.html gravestone.html wands.html talisman.html sign.html\
21 scrolls.html savebed.html rods.html potions.html pit.html levels.html \
22 keys.html horns.html holysymbol.html handbutt.html guild.html \
23 gatedoor.html fr_wall.html foodone.html dir_spin.html br_wall.html \
24 bows.html chap3.html skills.html equip.html stats.html char.html \
25 bonus.html chap2.html handbook.html
26
27 HANDBOOK = handbook.html chap1.html chap2.html chap3.html chap4.html chap5.html chap6.html appC.html
28
29 CLEANFILES = items .bmaps in_monput in_items in_spells in_stats in_equip \
30 *x*.ppm tmp.ppm work.ppm in_char items *.gif $(HTML)
31
32 CROSSBIN = ../../server/crossfire
33 INCDIR = $(top_srcdir)/include
34 DTOP = $(top_srcdir)/$(PACKAGE)-doc
35 PERL = @PERL@
36
37 handbook: $(HANDBOOK)
38
39 dump_switches:
40 @$(RM) dump_switches
41 @$(CROSSBIN) -m >/dev/null 2>&1 && touch dump_switches || (echo "You need to define DUMP_SWITCHES in include/config.h and"; echo "recompile before you can create the spoilers.")
42
43 @$(MAKE) $(MFLAGS) check_ok
44
45 check_ok: dump_switches
46 @$(RM) dump_switches
47
48 .bmaps: $(pkgdatadir)/archetypes
49 $(RM) *.gif
50 touch .bmaps
51
52 items: .bmaps in_items ../scripts/makeps.pl items.gif
53 $(PERL) ../scripts/makeps.pl libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_items inarch=$(pkgdatadir)/archetypes > items
54
55 in_items: items-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c
56 $(AWK) -v living_c=$(top_srcdir)/common/living.c -f items-extract $(pkgdatadir)/archetypes > in_items
57
58 handbook.html: version.html handbook.shtml
59 $(PERL) $(srcdir)/../include_html.pl handbook.shtml handbook.html
60
61 chap2.html: bonus.html char.html equip.html skills.html chap2.shtml
62 $(PERL) $(srcdir)/../include_html.pl chap2.shtml chap2.html
63
64 bonus.html:
65 $(AWK) -v living_c=../../common/living.c -f bonus-extract > bonus.html
66
67 in_char: char-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c
68 $(AWK) -v living_c=$(top_srcdir)/common/living.c -f char-extract $(pkgdatadir)/archetypes > in_char
69
70 char.html: .bmaps in_char ../scripts/makeps.pl characters.gif
71 $(PERL) ../scripts/makeps.pl libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_char inarch=$(pkgdatadir)/archetypes > char.html
72
73 in_stats: stats-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c
74 $(AWK) -v living_c=$(top_srcdir)/common/living.c -f stats-extract $(pkgdatadir)/archetypes > in_stats
75
76 stats.html: .bmaps in_stats ../scripts/makeps.pl stats.gif
77 $(PERL) ../scripts/makeps.pl libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_stats archdir=$(pkgdatadir)/archetypes > stats.html
78
79 equip.html: in_equip treas2-extract
80 $(AWK) -v eqitems=in_equip -f treas2-extract ../../lib/treasures > equip.html
81
82 in_equip: treas1-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c
83 $(AWK) -v living_c=$(top_srcdir)/common/living.c -f treas1-extract $(pkgdatadir)/archetypes | sort -d > in_equip
84
85 skills.html: in_equip skills-extract
86 $(AWK) -v eqitems=in_equip -f skills-extract ../../lib/treasures > skills.html
87
88 chap3.html: chap3.shtml bows.html br_wall.html dir_spin.html foodone.html fr_wall.html gatedoor.html guild.html handbutt.html holysymbol.html horns.html keys.html pit.html potions.html rods.html savebed.html scrolls.html sign.html corpse.html talisman.html wands.html levels.html gravestone.html
89 $(PERL) $(srcdir)/../include_html.pl chap3.shtml chap3.html
90
91 bows.html: items generic-extract
92 egrep -e "^14 " items | $(AWK) -F'&' -f generic-extract | sort > bows.html
93
94 br_wall.html: items sorter
95 egrep -e "^45 " items | $(AWK) -F'&' -f generic-extract | sort > br_wall.html
96
97 dir_spin.html: items sorter
98 egrep -e "^90 " items | $(AWK) -F'&' -f generic-extract | sort > dir_spin.html
99 egrep -e "^112 " items | $(AWK) -F'&' -f generic-extract | sort >> dir_spin.html
100
101 foodone.html: items sorter
102 egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | grep "food" > foodone.html
103
104 fr_wall.html: items sorter
105 egrep -e "^62 " items | $(AWK) -F'&' -f generic-extract | sort > fr_wall.html
106
107 gatedoor.html: items sorter
108 egrep -e "^20 " items | $(AWK) -F'&' -f generic-extract | sort > gatedoor.html
109 egrep -e "^23 " items | $(AWK) -F'&' -f generic-extract | sort >> gatedoor.html
110 egrep -e "^91 " items | $(AWK) -F'&' -f generic-extract | sort >> gatedoor.html
111
112 guild.html: items generic-extract
113 egrep -e "^66 " items | grep "guild" | $(AWK) -F'&' -f generic-extract | sort > guild.html
114
115 handbutt.html: items sorter
116 egrep -e "^92 " items | $(AWK) -F'&' -f generic-extract | sort > handbutt.html
117 egrep -e "^93 " items | $(AWK) -F'&' -f generic-extract | sort >> handbutt.html
118
119 holysymbol.html: items generic-extract
120 egrep -e "^43 " items | grep "holy" | $(AWK) -F'&' -f generic-extract | sort > holysymbol.html
121
122 horns.html: items sorter
123 egrep -e "^35 " items | $(AWK) -F'&' -f generic-extract | sort > horns.html
124
125 keys.html: items sorter
126 egrep -e "^21 " items | $(AWK) -F'&' -f generic-extract | sort > keys.html
127 egrep -e "^24 " items | $(AWK) -F'&' -f generic-extract | sort >> keys.html
128
129 levels.html:
130 $(AWK) -v living_c=../../common/living.c -f levels-extract > levels.html
131
132 pit.html: items sorter
133 egrep -e "^95 " items | $(AWK) -F'&' -f generic-extract | sort > pit.html
134
135 potions.html: items sorter
136 egrep -e "^5 " items | $(AWK) -F'&' -f generic-extract | sort > potions.html
137
138 rods.html: items sorter
139 egrep -e "^3 " items | $(AWK) -F'&' -f generic-extract | sort > rods.html
140
141 savebed.html: items sorter
142 egrep -e "^106 " items | $(AWK) -F'&' -f generic-extract | sort > savebed.html
143
144 scrolls.html: items sorter
145 egrep -e "^111 " items | $(AWK) -F'&' -f generic-extract | sort > scrolls.html
146
147 sign.html: items sorter
148 egrep -e "^98 " items | $(AWK) -F'&' -f generic-extract | sort > sign.html
149
150 talisman.html: items generic-extract
151 egrep -e "^43 " items | grep "talisman" | $(AWK) -F'&' -f generic-extract | sort > talisman.html
152
153 wands.html: items sorter
154 egrep -e "^109 " items | $(AWK) -F'&' -f generic-extract | sort > wands.html
155
156 gravestone.html: items sorter
157 egrep -e "^38 " items | $(AWK) -F'&' -f generic-extract | sort > gravestone.html
158
159 corpse.html: items sorter
160 egrep -e "^157 " items | $(AWK) -F'&' -f generic-extract | sort > corpse.html
161
162 chap4.html: chap4.shtml spellpath.html altar.html cauldron.html runefire.html runefrost.html runeblast.html runeshock.html runedeath.html runegen.html runemark.html
163 $(PERL) $(srcdir)/../include_html.pl chap4.shtml chap4.html
164
165 spellpath.html:
166 $(AWK) -v living_c=../../include/spellist.h -f spellpath-extract |sort > spellpath.html
167
168 altar.html: items sorter
169 egrep -e "^18 " items | $(AWK) -F'&' -f generic-extract | sort > altar.html
170
171 cauldron.html: items sorter
172 egrep -e "^122 " items | grep "cauldron" | $(AWK) -F'&' -f generic-extract | sort > cauldron.html
173
174 runeblast.html: items sorter
175 egrep -e "^154 " items | grep "rune-blast" | $(AWK) -F'&' -f generic-extract | sort > runeblast.html
176
177 runedeath.html: items sorter
178 egrep -e "^154 " items | grep "rune-death" | $(AWK) -F'&' -f generic-extract | sort > runedeath.html
179
180 runegen.html: items sorter
181 egrep -e "^154 " items | grep "generic-rune" | $(AWK) -F'&' -f generic-extract | sort > runegen.html
182
183 runefrost.html: items sorter
184 egrep -e "^154 " items | grep "rune-frost." | $(AWK) -F'&' -f generic-extract | sort > runefrost.html
185
186 runefire.html: items sorter
187 egrep -e "^154 " items | grep "rune-fire." | $(AWK) -F'&' -f generic-extract | sort > runefire.html
188
189 runemark.html: items sorter
190 egrep -e "^98 " items | grep "rune-mark." | $(AWK) -F'&' -f generic-extract | sort > runemark.html
191
192 runeshock.html: items sorter
193 egrep -e "^154 " items | grep "rune-shock." | $(AWK) -F'&' -f generic-extract | sort > runeshock.html
194
195 chap5.html: chap5.shtml skill_stat.html statskmod.html lockpicks.html
196 $(PERL) $(srcdir)/../include_html.pl chap5.shtml chap5.html
197
198 skill_stat.html: skills2-extract $(CROSSBIN)
199 $(AWK) -F, -v crosscmd="$(CROSSBIN) -m5" -f skills2-extract | sort > skill_stat.html
200
201 version.html: $(CROSSBIN)
202 $(CROSSBIN) -v 2>&1 | grep "^This is" | cut -d" " -f3- > version.html
203
204 statskmod.html:
205 $(AWK) -v living_c=../../server/skill_util.c -f statskmod-extract > statskmod.html
206
207 lockpicks.html: items sorter
208 egrep -e "^43 " items | grep "lockpicks" | $(AWK) -F'&' -f generic-extract | sort > lockpicks.html
209
210 chap6.html: chap6.shtml shop.html shopmat.html money.html books.html scrolls.html potions.html wands.html rods.html horns.html rings.html food.html flesh.html potion.html
211 $(PERL) $(srcdir)/../include_html.pl chap6.shtml chap6.html
212
213 shop.html: items sorter
214 egrep -e "^66 " items | grep "store" | $(AWK) -F'&' -f generic-extract | sort > shop.html
215
216 shopmat.html: items sorter
217 egrep -e "^69 " items | $(AWK) -F'&' -f generic-extract | sort > shopmat.html
218
219 money.html: items sorter
220 egrep -e "^36 " items | $(AWK) -F'&' -f generic-extract | sort > money.html
221
222 books.html: items sorter
223 egrep -e "^8 " items | $(AWK) -F'&' -f generic-extract | sort > books.html
224
225 rings.html: items sorter
226 egrep -e "^70 " items | $(AWK) -F'&' -f generic-extract | sort > rings.html
227
228 food.html: items sorter
229 egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | sort > food.html
230
231 flesh.html: items sorter
232 egrep -e "^72 " items | $(AWK) -F'&' -f generic-extract | sort > flesh.html
233
234 potion.html: items sorter
235 egrep -e "^5 " items | grep "potiongen" | $(AWK) -F'&' -f generic-extract | sort > potion.html
236
237 stats.gif items.gif monsters.gif spells.gif characters.gif:
238 touch $@
239
240 appC.html: appC.shtml gods.html
241 $(PERL) $(srcdir)/../include_html.pl appC.shtml appC.html
242
243 gods.html: gods-extract $(CROSSBIN)
244 $(AWK) -F, -v crosscmd="$(CROSSBIN) -m8" -f gods-extract > gods.html
245
246 archive: $(HANDBOOK)
247 $(mkinstalldirs) $(DTOP)/handbook-html/fig
248 cp $(HANDBOOK) $(DTOP)/handbook-html
249 cp $(FIG) $(DTOP)/handbook-html/fig
250 cp *.gif $(DTOP)/handbook-html
251