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