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