1 |
|
2 |
|
3 |
TEX = handbook.tex title.tex chap1.tex chap2.tex chap3.tex chap4.tex\ |
4 |
chap5.tex chap6.tex chap7.tex appA.tex appB.tex appC.tex |
5 |
|
6 |
dist_noinst_SCRIPTS = make_index.pl |
7 |
|
8 |
EXTRA_DIST = Makefile.in bonus-extract char-extract items-extract generic-extract\ |
9 |
gods-extract levels-extract local.sty skills-extract skills2-extract\ |
10 |
spellpath-extract statskmod-extract treas1-extract treas2-extract \ |
11 |
$(TEX) handbook.idx sorter empty.pbm fig/screen_dia.ps |
12 |
|
13 |
TABLES= bonus.tex char.tex equip.tex index.tex gods.tex levels.tex skills.tex\ |
14 |
skill_stat.tex statskmod.tex spellpath.tex version.tex |
15 |
|
16 |
ICONS = altar.tex arm_mail.tex br_wall.tex books.tex bows.tex cauldron.tex \ |
17 |
corpse.tex dir_spin.tex flesh.tex food.tex foodone.tex fr_wall.tex \ |
18 |
gatedoor.tex gems.tex gravestone.tex guild.tex holysymbol.tex \ |
19 |
handbutt.tex horns.tex id_altar.tex keys.tex lockpicks.tex\ |
20 |
lighter.tex money.tex pit.tex potion.tex potions.tex rings.tex \ |
21 |
rods.tex runeblast.tex runedeath.tex runefire.tex runefrost.tex\ |
22 |
runeshock.tex runemark.tex runegen.tex savebed.tex scrolls.tex \ |
23 |
shops.tex shopmat.tex sign.tex talisman.tex wands.tex |
24 |
|
25 |
CLEANFILES = $(TABLES) $(ICONS) items .bmaps in_* *.ps *x*.ppm tmp.ppm work.ppm \ |
26 |
handbook.toc handbook.lot handbook.dvi handbook.log handbook.aux handbook.idx |
27 |
|
28 |
MAINTAINERCLEANFILES = Makefile.in |
29 |
|
30 |
CROSSBIN = ../../server/crossfire |
31 |
PERL = @PERL@ |
32 |
|
33 |
handbook: ../handbook.ps |
34 |
|
35 |
../handbook.ps: handbook.dvi |
36 |
dvips -o ../handbook.ps handbook.dvi |
37 |
|
38 |
handbook.dvi: handbook.aux |
39 |
latex handbook.tex |
40 |
|
41 |
handbook.aux: handbook.tex $(TABLES) $(ICONS) |
42 |
$(RM) handbook.aux |
43 |
latex handbook.tex |
44 |
|
45 |
dump_switches: $(CROSSBIN) |
46 |
@$(RM) dump_switches |
47 |
@$(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 handbook.") |
48 |
@$(MAKE) $(MFLAGS) check_ok |
49 |
|
50 |
$(CROSSBIN): |
51 |
( cd $(top_srcdir)/server ; make crossfire) |
52 |
|
53 |
check_ok: dump_switches |
54 |
@$(RM) dump_switches |
55 |
|
56 |
.bmaps: $(top_srcdir)/lib/archetypes |
57 |
$(RM) *.ps |
58 |
touch .bmaps |
59 |
|
60 |
index.tex handbook.idx: make_index.pl |
61 |
touch handbook.idx |
62 |
$(PERL) make_index.pl handbook.idx > index.tex; |
63 |
|
64 |
items: .bmaps in_items ../scripts/makeps.pl items.ps |
65 |
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_items inarch=$(pkgdatadir)/archetypes > items |
66 |
|
67 |
in_items: items-extract $(pkgdatadir)/archetypes |
68 |
$(AWK) -f items-extract $(pkgdatadir)/archetypes > in_items |
69 |
|
70 |
bonus.tex: |
71 |
$(AWK) -v living_c=$(top_srcdir)/common/living.c -f bonus-extract > bonus.tex |
72 |
|
73 |
char.tex: .bmaps in_char ../scripts/makeps.pl characters.ps |
74 |
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_char inarch=$(pkgdatadir)/archetypes > char.tex |
75 |
|
76 |
in_char: char-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c |
77 |
$(AWK) -v living_c=$(top_srcdir)/common/living.c -f char-extract $(pkgdatadir)/archetypes > in_char |
78 |
|
79 |
equip.tex: in_equip treas2-extract |
80 |
$(AWK) -v eqitems=in_equip -f treas2-extract $(top_srcdir)/lib/treasures.bld > equip.tex |
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 |
gods.tex: gods-extract $(CROSSBIN) |
86 |
$(AWK) -F, -v crosscmd="$(CROSSBIN) -m8" -f gods-extract > gods.tex |
87 |
|
88 |
levels.tex: |
89 |
$(AWK) -v living_c=../../common/living.c -f levels-extract > levels.tex |
90 |
|
91 |
skills.tex: in_equip skills-extract |
92 |
$(AWK) -v eqitems=in_equip -f skills-extract $(top_srcdir)/lib/treasures.bld > skills.tex |
93 |
|
94 |
skill_stat.tex: skills2-extract $(CROSSBIN) |
95 |
$(AWK) -F, -v crosscmd="$(CROSSBIN) -m5" -f skills2-extract | sort > skill_stat.tex |
96 |
|
97 |
statskmod.tex: |
98 |
$(AWK) -v living_c=../../server/skill_util.c -f statskmod-extract > statskmod.tex |
99 |
|
100 |
spellpath.tex: |
101 |
$(AWK) -v living_c=../../include/spellist.h -f spellpath-extract |sort > spellpath.tex |
102 |
|
103 |
version.tex: $(CROSSBIN) |
104 |
$(CROSSBIN) -v 2>&1 | grep "^This is" | cut -d" " -f4- > version.tex |
105 |
|
106 |
sp_item.tex: handbutt.tex gatedoor.tex pit.tex br_wall.tex fr_wall.tex dir_spin.tex |
107 |
|
108 |
characters.ps items.ps: |
109 |
touch $@ |
110 |
|
111 |
cauldron.tex: items sorter |
112 |
egrep -e "^122 " items | grep "cauldron" | $(AWK) -F'&' -f generic-extract | sort > cauldron.tex |
113 |
|
114 |
guild.tex: items sorter |
115 |
egrep -e "^66 " items | grep "guild" | $(AWK) -F'&' -f generic-extract | sort > guild.tex |
116 |
|
117 |
holysymbol.tex: items sorter |
118 |
egrep -e "^43 " items | grep "holy" | $(AWK) -F'&' -f generic-extract | sort > holysymbol.tex |
119 |
|
120 |
lockpicks.tex: items sorter |
121 |
egrep -e "^43 " items | grep "lockpicks" | $(AWK) -F'&' -f generic-extract | sort > lockpicks.tex |
122 |
|
123 |
potion.tex: items sorter |
124 |
egrep -e "^5 " items | grep "potiongen" | $(AWK) -F'&' -f generic-extract | sort > potion.tex |
125 |
|
126 |
runeblast.tex: items sorter |
127 |
egrep -e "^154 " items | grep "rune-blast" | $(AWK) -F'&' -f generic-extract | sort > runeblast.tex |
128 |
|
129 |
runedeath.tex: items sorter |
130 |
egrep -e "^154 " items | grep "rune-death" | $(AWK) -F'&' -f generic-extract | sort > runedeath.tex |
131 |
|
132 |
runegen.tex: items sorter |
133 |
egrep -e "^154 " items | grep "generic-rune" | $(AWK) -F'&' -f generic-extract | sort > runegen.tex |
134 |
|
135 |
runefrost.tex: items sorter |
136 |
egrep -e "^154 " items | grep "rune-frost." | $(AWK) -F'&' -f generic-extract | sort > runefrost.tex |
137 |
|
138 |
runefire.tex: items sorter |
139 |
egrep -e "^154 " items | grep "rune-fire." | $(AWK) -F'&' -f generic-extract | sort > runefire.tex |
140 |
|
141 |
runemark.tex: items sorter |
142 |
egrep -e "^98 " items | grep "rune-mark." | $(AWK) -F'&' -f generic-extract | sort > runemark.tex |
143 |
|
144 |
runeshock.tex: items sorter |
145 |
egrep -e "^154 " items | grep "rune-shock." | $(AWK) -F'&' -f generic-extract | sort > runeshock.tex |
146 |
|
147 |
shops.tex: items sorter |
148 |
egrep -e "^66 " items | grep "store" | $(AWK) -F'&' -f generic-extract | sort > shops.tex |
149 |
|
150 |
talisman.tex: items sorter |
151 |
egrep -e "^43 " items | grep "talisman" | $(AWK) -F'&' -f generic-extract | sort > talisman.tex |
152 |
|
153 |
altar.tex: items sorter |
154 |
egrep -e "^18 " items | $(AWK) -F'&' -f generic-extract | sort > altar.tex |
155 |
|
156 |
arm_mail.tex: items generic-extract |
157 |
egrep -e "^16 " items | $(AWK) -F'&' -f generic-extract | sort -t'&' -n +4 -5 > arm_mail.tex |
158 |
|
159 |
br_wall.tex: items sorter |
160 |
egrep -e "^45 " items | $(AWK) -F'&' -f generic-extract | sort > br_wall.tex |
161 |
|
162 |
books.tex: items sorter |
163 |
egrep -e "^8 " items | $(AWK) -F'&' -f generic-extract | sort > books.tex |
164 |
|
165 |
bows.tex: items generic-extract |
166 |
egrep -e "^14 " items | $(AWK) -F'&' -f generic-extract | sort > bows.tex |
167 |
|
168 |
corpse.tex: items sorter |
169 |
egrep -e "^157 " items | $(AWK) -F'&' -f generic-extract | sort > corpse.tex |
170 |
|
171 |
dir_spin.tex: items sorter |
172 |
egrep -e "^90 " items | $(AWK) -F'&' -f generic-extract | sort > dir_spin.tex |
173 |
egrep -e "^112 " items | $(AWK) -F'&' -f generic-extract | sort >> dir_spin.tex |
174 |
|
175 |
flesh.tex: items sorter |
176 |
egrep -e "^72 " items | $(AWK) -F'&' -f generic-extract | sort > flesh.tex |
177 |
|
178 |
food.tex: items sorter |
179 |
egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | sort > food.tex |
180 |
|
181 |
foodone.tex: items sorter |
182 |
egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | grep "food" > foodone.tex |
183 |
|
184 |
fr_wall.tex: items sorter |
185 |
egrep -e "^62 " items | $(AWK) -F'&' -f generic-extract | sort > fr_wall.tex |
186 |
|
187 |
gatedoor.tex: items sorter |
188 |
egrep -e "^20 " items | $(AWK) -F'&' -f generic-extract | sort > gatedoor.tex |
189 |
egrep -e "^23 " items | $(AWK) -F'&' -f generic-extract | sort >> gatedoor.tex |
190 |
egrep -e "^91 " items | $(AWK) -F'&' -f generic-extract | sort >> gatedoor.tex |
191 |
|
192 |
gems.tex: items sorter |
193 |
egrep -e "^60 " items | $(AWK) -F'&' -f generic-extract | sort > gems.tex |
194 |
|
195 |
gravestone.tex: items sorter |
196 |
egrep -e "^38 " items | $(AWK) -F'&' -f generic-extract | sort > gravestone.tex |
197 |
|
198 |
handbutt.tex: items sorter |
199 |
egrep -e "^92 " items | $(AWK) -F'&' -f generic-extract | sort > handbutt.tex |
200 |
egrep -e "^93 " items | $(AWK) -F'&' -f generic-extract | sort >> handbutt.tex |
201 |
|
202 |
horns.tex: items sorter |
203 |
egrep -e "^35 " items | $(AWK) -F'&' -f generic-extract | sort > horns.tex |
204 |
|
205 |
id_altar.tex: items sorter |
206 |
egrep -e "^139 " items | $(AWK) -F'&' -f generic-extract | sort > id_altar.tex |
207 |
|
208 |
keys.tex: items sorter |
209 |
egrep -e "^21 " items | $(AWK) -F'&' -f generic-extract | sort > keys.tex |
210 |
egrep -e "^24 " items | $(AWK) -F'&' -f generic-extract | sort >> keys.tex |
211 |
|
212 |
lighter.tex: items sorter |
213 |
egrep -e "^75 " items | $(AWK) -F'&' -f generic-extract | sort > lighter.tex |
214 |
|
215 |
money.tex: items sorter |
216 |
egrep -e "^36 " items | $(AWK) -F'&' -f generic-extract | sort > money.tex |
217 |
|
218 |
pit.tex: items sorter |
219 |
egrep -e "^95 " items | $(AWK) -F'&' -f generic-extract | sort > pit.tex |
220 |
|
221 |
potions.tex: items sorter |
222 |
egrep -e "^5 " items | $(AWK) -F'&' -f generic-extract | sort > potions.tex |
223 |
|
224 |
rings.tex: items sorter |
225 |
egrep -e "^70 " items | $(AWK) -F'&' -f generic-extract | sort > rings.tex |
226 |
|
227 |
rods.tex: items sorter |
228 |
egrep -e "^3 " items | $(AWK) -F'&' -f generic-extract | sort > rods.tex |
229 |
|
230 |
savebed.tex: items sorter |
231 |
egrep -e "^106 " items | $(AWK) -F'&' -f generic-extract | sort > savebed.tex |
232 |
|
233 |
scrolls.tex: items sorter |
234 |
egrep -e "^111 " items | $(AWK) -F'&' -f generic-extract | sort > scrolls.tex |
235 |
|
236 |
shopmat.tex: items sorter |
237 |
egrep -e "^69 " items | $(AWK) -F'&' -f generic-extract | sort > shopmat.tex |
238 |
|
239 |
sign.tex: items sorter |
240 |
egrep -e "^98 " items | $(AWK) -F'&' -f generic-extract | sort > sign.tex |
241 |
|
242 |
wands.tex: items sorter |
243 |
egrep -e "^109 " items | $(AWK) -F'&' -f generic-extract | sort > wands.tex |
244 |
|