1 |
pippijn |
1.1 |
|
2 |
|
|
|
3 |
|
|
EXTRA_DIST = monster-extract spells-extract stats-extract arm-extract\ |
4 |
|
|
helm-extract mag-extract shield-extract items-extract spoiler.tex\ |
5 |
|
|
sorter empty.pbm bow-extract arche-extract weap-extract |
6 |
|
|
|
7 |
|
|
TEX = monput.tex spells.tex stats.tex weap.tex shield.tex helmet.tex\ |
8 |
|
|
mag.tex arm.tex arche.tex bow.tex version.tex weapmag.tex |
9 |
|
|
|
10 |
|
|
CLEANFILES = $(TEX) items .bmaps in_monput in_items in_spells in_stats \ |
11 |
|
|
*.ps *x*.ppm tmp.ppm work.ppm spoiler.dvi spoiler.log spoiler.aux |
12 |
|
|
|
13 |
|
|
MAINTAINERCLEANFILES = Makefile.in |
14 |
|
|
|
15 |
|
|
CROSSBIN = ../../server/crossfire |
16 |
|
|
INCDIR = $(top_srcdir)/include |
17 |
|
|
PERL = @PERL@ |
18 |
|
|
|
19 |
|
|
spoiler: ../spoiler.ps |
20 |
|
|
|
21 |
|
|
../spoiler.ps: spoiler.dvi |
22 |
|
|
dvips -o ../spoiler.ps spoiler.dvi |
23 |
|
|
|
24 |
|
|
spoiler.dvi: spoiler.aux |
25 |
|
|
latex spoiler.tex |
26 |
|
|
|
27 |
|
|
spoiler.aux: spoiler.tex $(TEX) |
28 |
|
|
$(RM) spoiler.aux |
29 |
|
|
latex spoiler.tex |
30 |
|
|
|
31 |
|
|
dump_switches: |
32 |
|
|
@$(RM) dump_switches |
33 |
|
|
@$(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.") |
34 |
|
|
|
35 |
|
|
@$(MAKE) $(MFLAGS) check_ok |
36 |
|
|
|
37 |
|
|
check_ok: dump_switches |
38 |
|
|
@$(RM) dump_switches |
39 |
|
|
|
40 |
|
|
.bmaps: ../../lib/archetypes |
41 |
|
|
$(RM) *.ps |
42 |
|
|
touch .bmaps |
43 |
|
|
|
44 |
|
|
items: .bmaps in_items ../scripts/makeps.pl items.ps |
45 |
|
|
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_items inarch=$(pkgdatadir)/archetypes > items |
46 |
|
|
|
47 |
|
|
in_items: items-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c |
48 |
|
|
$(AWK) -v living_c=$(top_srcdir)/common/living.c -f items-extract $(pkgdatadir)/archetypes > in_items |
49 |
|
|
|
50 |
|
|
stats.tex: .bmaps in_stats ../scripts/makeps.pl characters.ps |
51 |
|
|
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_stats inarch=$(pkgdatadir)/archetypes > stats.tex |
52 |
|
|
|
53 |
|
|
in_stats: stats-extract $(pkgdatadir)/archetypes $(top_srcdir)/common/living.c |
54 |
|
|
$(AWK) -v living_c=$(top_srcdir)/common/living.c -f stats-extract $(pkgdatadir)/archetypes > in_stats |
55 |
|
|
|
56 |
|
|
monput.tex: .bmaps in_monput ../scripts/makeps.pl monsters.ps |
57 |
|
|
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_monput inarch=$(pkgdatadir)/archetypes > monput.tex |
58 |
|
|
|
59 |
|
|
in_monput: monster-extract $(CROSSBIN) $(pkgdatadir)/treasures $(pkgdatadir)/archetypes |
60 |
|
|
$(CROSSBIN) -m2 | sort -f | $(AWK) -F'|' -f monster-extract > in_monput |
61 |
|
|
|
62 |
|
|
spells.tex: .bmaps in_spells ../scripts/makeps.pl spells.ps |
63 |
|
|
$(PERL) ../scripts/makeps.pl output=tex libdir=$(top_srcdir)/lib archdir=$(top_srcdir)/lib/ size=0.4 input=in_spells inarch=$(pkgdatadir)/archetypes > spells.tex |
64 |
|
|
|
65 |
|
|
in_spells: spells-extract sorter $(INCDIR)/spellist.h $(CROSSBIN) $(pkgdatadir)/archetypes |
66 |
|
|
tr -d \" < $(INCDIR)/spellist.h | $(AWK) -F, -v crosscmd="$(CROSSBIN) -m4" -f spells-extract | sort > in_spells |
67 |
|
|
|
68 |
|
|
version.tex: $(CROSSBIN) |
69 |
|
|
$(CROSSBIN) -v 2>&1 | grep "^This is" | cut -d" " -f3- > version.tex |
70 |
|
|
|
71 |
|
|
characters.ps items.ps monsters.ps spells.ps: |
72 |
|
|
touch $@ |
73 |
|
|
|
74 |
|
|
weap.tex: items sorter |
75 |
|
|
egrep -e "^15 " items | $(AWK) -F'&' '{printf("%s &%s &%s &%.2f &%s\n",$$3,$$10,$$5,$$11,$$6)}' | sort | $(AWK) -F'&' -f sorter -v lengde=`egrep -e "^15" items | wc -l | tr -d ' ' ` | sort | cut -d'&' -f 2- > weap.tex |
76 |
|
|
|
77 |
|
|
shield.tex: items shield-extract |
78 |
|
|
egrep -e "^33 " items | $(AWK) -F'&' -f shield-extract | sort > shield.tex |
79 |
|
|
|
80 |
|
|
arm.tex: items arm-extract |
81 |
|
|
egrep -e "^16 " items | $(AWK) -F'&' -f arm-extract | sort -t'&' -n +4 -5 > arm.tex |
82 |
|
|
|
83 |
|
|
helmet.tex: items helm-extract |
84 |
|
|
egrep -e "^34 " items | $(AWK) -F'&' -f helm-extract | sort -t'&' -n +3 -4 | sed -e s/_/' '/g > helmet.tex |
85 |
|
|
|
86 |
|
|
bow.tex: items bow-extract |
87 |
|
|
egrep -e "^14 " items | $(AWK) -F'&' -f bow-extract | sort > bow.tex |
88 |
|
|
|
89 |
|
|
arche.tex: items arche-extract |
90 |
|
|
egrep -e "^915 " items | $(AWK) -F'&' -f arche-extract | sort > arche.tex |
91 |
|
|
|
92 |
|
|
weapmag.tex: items weap-extract |
93 |
|
|
egrep -e "^15 " items | $(AWK) -F'&' -f weap-extract | sort > weapmag.tex |
94 |
|
|
|
95 |
|
|
mag.tex: items mag-extract |
96 |
|
|
$(AWK) -F'&' -f mag-extract items | sort +0.9 -0.10 > mag.tex |