ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/historic/spoiler-html/Makefile.am
Revision: 1.1
Committed: Thu Sep 7 21:43:10 2006 UTC (17 years, 10 months ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_82, rel-2_81, rel-2_80, rel-3_1, rel-3_0, rel-2_6, rel-2_7, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-2_1, rel-2_72, rel-2_73, rel-2_71, rel-2_76, rel-2_77, rel-2_74, rel-2_75, rel-2_54, rel-2_55, rel-2_56, rel-2_79, rel-2_52, rel-2_53, rel-2_32, rel-2_90, rel-2_92, rel-2_93, rel-2_78, rel-2_61, rel-2_43, rel-2_42, rel-2_41, HEAD
Log Message:
Moved documents to doc/historic

File Contents

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