| 1 |
# if you want output as PDF, change the following lines to pdflatex and pdf respectively. |
| 2 |
LATEX = latex |
| 3 |
OUTPUT = tex |
| 4 |
|
| 5 |
TEX = handbook.tex title.tex chap1.tex chap2.tex chap3.tex chap4.tex\ |
| 6 |
chap5.tex chap6.tex chap7.tex appA.tex appB.tex appC.tex |
| 7 |
|
| 8 |
dist_noinst_SCRIPTS = make_index.pl |
| 9 |
|
| 10 |
EXTRA_DIST = char-extract items-extract generic-extract\ |
| 11 |
local.sty skills-extract skills2-extract\ |
| 12 |
spellpath-extract statskmod-extract treas1-extract treas2-extract \ |
| 13 |
$(TEX) handbook.idx sorter empty.pbm fig/screen_dia.ps |
| 14 |
|
| 15 |
TABLES= bonus.tex char.tex equip.tex index.tex gods.tex levels.tex skills.tex\ |
| 16 |
skill_stat.tex statskmod.tex spellpath.tex version.tex |
| 17 |
|
| 18 |
ICONS = altar.tex arm_mail.tex br_wall.tex books.tex bows.tex cauldron.tex \ |
| 19 |
corpse.tex dir_spin.tex flesh.tex food.tex foodone.tex fr_wall.tex \ |
| 20 |
gatedoor.tex gems.tex gravestone.tex guild.tex holysymbol.tex \ |
| 21 |
handbutt.tex horns.tex id_altar.tex keys.tex lockpicks.tex\ |
| 22 |
lighter.tex money.tex pit.tex potion.tex potions.tex rings.tex \ |
| 23 |
rods.tex runeblast.tex runedeath.tex runefire.tex runefrost.tex\ |
| 24 |
runeshock.tex runemark.tex runegen.tex savebed.tex scrolls.tex \ |
| 25 |
shops.tex shopmat.tex sign.tex talisman.tex wands.tex |
| 26 |
|
| 27 |
CLEANFILES = $(TABLES) $(ICONS) items .bmaps in_* *.ps *x*.ppm tmp.ppm work.ppm \ |
| 28 |
handbook.toc handbook.lot handbook.dvi handbook.log handbook.aux handbook.idx |
| 29 |
|
| 30 |
CROSSBIN = ../../server/crossfire-server |
| 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=$(OUTPUT) 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: ../scripts/bonus-extract.pl |
| 71 |
$(PERL) ../scripts/bonus-extract.pl $(top_srcdir)/lib/config/stat_bonus latex bonus.tex |
| 72 |
|
| 73 |
char.tex: .bmaps in_char ../scripts/makeps.pl characters.ps |
| 74 |
$(PERL) ../scripts/makeps.pl output=$(OUTPUT) 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: ../scripts/gods-extract.pl $(CROSSBIN) |
| 86 |
$(PERL) ../scripts/gods-extract.pl "$(CROSSBIN) -m8" latex gods.tex |
| 87 |
|
| 88 |
levels.tex: ../scripts/levels-extract.pl |
| 89 |
$(PERL) ../scripts/levels-extract.pl "$(top_srcdir)/lib/config/exp_table" latex 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 -u > 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 -u > 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 -u > cauldron.tex |
| 113 |
|
| 114 |
guild.tex: items sorter |
| 115 |
egrep -e "^66 " items | grep "guild" | $(AWK) -F'&' -f generic-extract | sort -u > guild.tex |
| 116 |
|
| 117 |
holysymbol.tex: items sorter |
| 118 |
egrep -e "^74 " items | grep "holy" | $(AWK) -F'&' -f generic-extract | sort -u > holysymbol.tex |
| 119 |
|
| 120 |
lockpicks.tex: items sorter |
| 121 |
egrep -e "^74 " items | grep "lockpicks" | $(AWK) -F'&' -f generic-extract | sort -u > lockpicks.tex |
| 122 |
|
| 123 |
potion.tex: items sorter |
| 124 |
egrep -e "^5 " items | grep "potiongen" | $(AWK) -F'&' -f generic-extract | sort -u > potion.tex |
| 125 |
|
| 126 |
runeblast.tex: items sorter |
| 127 |
egrep -e "^154 " items | grep "rune-blast" | $(AWK) -F'&' -f generic-extract | sort -u > runeblast.tex |
| 128 |
|
| 129 |
runedeath.tex: items sorter |
| 130 |
egrep -e "^154 " items | grep "rune-death" | $(AWK) -F'&' -f generic-extract | sort -u > runedeath.tex |
| 131 |
|
| 132 |
runegen.tex: items sorter |
| 133 |
egrep -e "^101 " items | grep -e "penta" | $(AWK) -F'&' -f generic-extract | sort -u > runegen.tex |
| 134 |
egrep -e "^101 " items | grep -e "glyph" | $(AWK) -F'&' -f generic-extract | sort -u >> runegen.tex |
| 135 |
|
| 136 |
runefrost.tex: items sorter |
| 137 |
egrep -e "^154 " items | grep "rune-frost." | $(AWK) -F'&' -f generic-extract | sort -u > runefrost.tex |
| 138 |
|
| 139 |
runefire.tex: items sorter |
| 140 |
egrep -e "^154 " items | grep "rune-fire." | $(AWK) -F'&' -f generic-extract | sort -u > runefire.tex |
| 141 |
|
| 142 |
runemark.tex: items sorter |
| 143 |
egrep -e "^98 " items | grep "rune-mark." | $(AWK) -F'&' -f generic-extract | sort -u > runemark.tex |
| 144 |
|
| 145 |
runeshock.tex: items sorter |
| 146 |
egrep -e "^154 " items | grep "rune-shock." | $(AWK) -F'&' -f generic-extract | sort -u > runeshock.tex |
| 147 |
|
| 148 |
shops.tex: items sorter |
| 149 |
egrep -e "^66 " items | grep "store" | $(AWK) -F'&' -f generic-extract | sort -u > shops.tex |
| 150 |
|
| 151 |
talisman.tex: items sorter |
| 152 |
egrep -e "^74 " items | grep "talisman" | $(AWK) -F'&' -f generic-extract | sort -u > talisman.tex |
| 153 |
|
| 154 |
altar.tex: items sorter |
| 155 |
egrep -e "^18 " items | $(AWK) -F'&' -f generic-extract | sort -u > altar.tex |
| 156 |
|
| 157 |
arm_mail.tex: items generic-extract |
| 158 |
egrep -e "^16 " items | $(AWK) -F'&' -f generic-extract | sort -t'&' -n +4 -5 > arm_mail.tex |
| 159 |
|
| 160 |
br_wall.tex: items sorter |
| 161 |
egrep -e "^45 " items | $(AWK) -F'&' -f generic-extract | sort -u > br_wall.tex |
| 162 |
|
| 163 |
books.tex: items sorter |
| 164 |
egrep -e "^8 " items | $(AWK) -F'&' -f generic-extract | sort -u > books.tex |
| 165 |
|
| 166 |
bows.tex: items generic-extract |
| 167 |
egrep -e "^14 " items | $(AWK) -F'&' -f generic-extract | sort -u > bows.tex |
| 168 |
|
| 169 |
corpse.tex: items sorter |
| 170 |
egrep -e "^157 " items | $(AWK) -F'&' -f generic-extract | sort -u > corpse.tex |
| 171 |
|
| 172 |
dir_spin.tex: items sorter |
| 173 |
egrep -e "^90 " items | $(AWK) -F'&' -f generic-extract | sort -u > dir_spin.tex |
| 174 |
egrep -e "^112 " items | $(AWK) -F'&' -f generic-extract | sort -u >> dir_spin.tex |
| 175 |
|
| 176 |
flesh.tex: items sorter |
| 177 |
egrep -e "^72 " items | $(AWK) -F'&' -f generic-extract | sort -u > flesh.tex |
| 178 |
|
| 179 |
food.tex: items sorter |
| 180 |
egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | sort -u > food.tex |
| 181 |
|
| 182 |
foodone.tex: items sorter |
| 183 |
egrep -e "^6 " items | $(AWK) -F'&' -f generic-extract | grep "food" > foodone.tex |
| 184 |
|
| 185 |
fr_wall.tex: items sorter |
| 186 |
egrep -e "^62 " items | $(AWK) -F'&' -f generic-extract | sort -u > fr_wall.tex |
| 187 |
|
| 188 |
gatedoor.tex: items sorter |
| 189 |
egrep -e "^20 " items | $(AWK) -F'&' -f generic-extract | sort -u > gatedoor.tex |
| 190 |
egrep -e "^23 " items | $(AWK) -F'&' -f generic-extract | sort -u >> gatedoor.tex |
| 191 |
egrep -e "^91 " items | $(AWK) -F'&' -f generic-extract | sort -u >> gatedoor.tex |
| 192 |
|
| 193 |
gems.tex: items sorter |
| 194 |
egrep -e "^60 " items | $(AWK) -F'&' -f generic-extract | sort -u > gems.tex |
| 195 |
|
| 196 |
gravestone.tex: items sorter |
| 197 |
egrep -e "^98 " items | $(AWK) -F'&' -f generic-extract | grep "gravestone\." > gravestone.tex |
| 198 |
|
| 199 |
handbutt.tex: items sorter |
| 200 |
egrep -e "^92 " items | $(AWK) -F'&' -f generic-extract | sort -u > handbutt.tex |
| 201 |
egrep -e "^93 " items | $(AWK) -F'&' -f generic-extract | sort -u >> handbutt.tex |
| 202 |
|
| 203 |
horns.tex: items sorter |
| 204 |
egrep -e "^35 " items | $(AWK) -F'&' -f generic-extract | sort -u > horns.tex |
| 205 |
|
| 206 |
id_altar.tex: items sorter |
| 207 |
egrep -e "^139 " items | $(AWK) -F'&' -f generic-extract | sort -u > id_altar.tex |
| 208 |
|
| 209 |
keys.tex: items sorter |
| 210 |
egrep -e "^21 " items | $(AWK) -F'&' -f generic-extract | sort -u > keys.tex |
| 211 |
egrep -e "^24 " items | $(AWK) -F'&' -f generic-extract | sort -u >> keys.tex |
| 212 |
|
| 213 |
lighter.tex: items sorter |
| 214 |
egrep -e "^75 " items | $(AWK) -F'&' -f generic-extract | sort -u > lighter.tex |
| 215 |
|
| 216 |
money.tex: items sorter |
| 217 |
egrep -e "^36 " items | $(AWK) -F'&' -f generic-extract | sort -u > money.tex |
| 218 |
|
| 219 |
pit.tex: items sorter |
| 220 |
egrep -e "^95 " items | $(AWK) -F'&' -f generic-extract | sort -u > pit.tex |
| 221 |
|
| 222 |
potions.tex: items sorter |
| 223 |
egrep -e "^5 " items | $(AWK) -F'&' -f generic-extract | sort -u > potions.tex |
| 224 |
|
| 225 |
rings.tex: items sorter |
| 226 |
egrep -e "^70 " items | $(AWK) -F'&' -f generic-extract | sort -u > rings.tex |
| 227 |
|
| 228 |
rods.tex: items sorter |
| 229 |
egrep -e "^3 " items | $(AWK) -F'&' -f generic-extract | sort -u > rods.tex |
| 230 |
|
| 231 |
savebed.tex: items sorter |
| 232 |
egrep -e "^106 " items | $(AWK) -F'&' -f generic-extract | sort -u > savebed.tex |
| 233 |
|
| 234 |
scrolls.tex: items sorter |
| 235 |
egrep -e "^111 " items | $(AWK) -F'&' -f generic-extract | sort -u > scrolls.tex |
| 236 |
|
| 237 |
shopmat.tex: items sorter |
| 238 |
egrep -e "^69 " items | $(AWK) -F'&' -f generic-extract | sort -u > shopmat.tex |
| 239 |
|
| 240 |
sign.tex: items sorter |
| 241 |
egrep -e "^98 " items | $(AWK) -F'&' -f generic-extract | sort -u > sign.tex |
| 242 |
|
| 243 |
wands.tex: items sorter |
| 244 |
egrep -e "^109 " items | $(AWK) -F'&' -f generic-extract | sort -u > wands.tex |