FILES = Makefile.in monster-extract spells-extract stats-extract arm-extract\ spoiler.html spoiler.shtml helm-extract mag-extract shield-extract \ items-extract makeps.pl empty.pbm bow-extract arche-extract\ weap-extract HTML = monput.html spells.html stats.html weap.html shield.html helmet.html\ mag.html arm.html arche.html bow.html version.html weapmag.html CROSSBIN = ../../server/crossfire INCDIR = ../../include CROSSRC = ../.. prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ localdir = @localstatedir@ libdir = @libdir@ AWK = @AWK@ spoiler.html:: $(HTML) spoiler.shtml ../include_html.pl spoiler.shtml spoiler.html all:: $(CROSSBIN): @$(RM) dump_switches @$(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.") @$(MAKE) $(MFLAGS) check_ok check_ok: dump_switches @$(RM) dump_switches .bmaps: $(datadir)/archetypes $(RM) *.gif touch .bmaps items: .bmaps in_items makeps.pl items.gif makeps.pl libdir=$(CROSSRC)/lib archdir=$(CROSSRC)/lib/ size=0.4 input=in_items inarch=$(datadir)/archetypes > items in_items: items-extract $(datadir)/archetypes $(CROSSRC)/common/living.c $(AWK) -v living_c=$(CROSSRC)/common/living.c -f items-extract $(datadir)/archetypes > in_items stats.html: .bmaps in_stats makeps.pl stats.gif makeps.pl libdir=$(CROSSRC)/lib archdir=$(CROSSRC)/lib/ size=0.4 input=in_stats inarch=$(datadir)/archetypes > stats.html in_stats: stats-extract $(datadir)/archetypes $(CROSSRC)/common/living.c $(AWK) -v living_c=$(CROSSRC)/common/living.c -f stats-extract $(datadir)/archetypes > in_stats monput.html: .bmaps in_monput makeps.pl monsters.gif makeps.pl libdir=$(CROSSRC)/lib archdir=$(CROSSRC)/lib/ size=0.4 input=in_monput inarch=$(datadir)/archetypes > monput.html in_monput: monster-extract $(CROSSBIN) $(datadir)/treasures $(datadir)/archetypes $(CROSSBIN) -m2 | sort -f | $(AWK) -F'|' -f monster-extract > in_monput spells.html: .bmaps in_spells makeps.pl spells.gif makeps.pl libdir=$(CROSSRC)/lib archdir=$(CROSSRC)/lib/ size=0.4 input=in_spells inarch=$(datadir)/archetypes > spells.html in_spells: spells-extract $(INCDIR)/spellist.h $(CROSSBIN) $(datadir)/archetypes tr -d \" < $(INCDIR)/spellist.h | $(AWK) -F, -v crosscmd="$(CROSSBIN) -m4" -f spells-extract | sort > in_spells version.html: $(CROSSBIN) $(CROSSBIN) -v 2>&1 | grep "^This is" | cut -d" " -f3- > version.html stats.gif items.gif monsters.gif spells.gif: touch $@ weap.html: items 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 shield.html: items shield-extract egrep -e "^33 " items | $(AWK) -F'&' -f shield-extract | sort > shield.html arm.html: items arm-extract egrep -e "^16 " items | $(AWK) -F'&' -f arm-extract | sort -t'&' -n +4 -5 > arm.html helmet.html: items helm-extract egrep -e "^34 " items | $(AWK) -F'&' -f helm-extract | sort -t'&' -n +3 -4 | sed -e s/_/' '/g > helmet.html bow.html: items bow-extract egrep -e "^14 " items | $(AWK) -F'&' -f bow-extract | sort > bow.html arche.html: items arche-extract egrep -e "^915 " items | $(AWK) -F'&' -f arche-extract | sort > arche.html weapmag.html: items weap-extract egrep -e "^15 " items | $(AWK) -F'&' -f weap-extract | sort > weapmag.html mag.html: items mag-extract $(AWK) -F'&' -f mag-extract items | sort +0.9 -0.10 > mag.html install:: depend:: clean:: $(RM) items .bmaps in_monput in_items in_spells in_stats $(RM) *x*.ppm tmp.ppm work.ppm distclean:: $(RM) -f Makefile archive:: @if [ -d $(ARCHIVE)/doc/spoiler-html ]; then set +x; \ else (set -x; $(MKDIR) $(ARCHIVE)/doc/spoiler-html); fi $(CP) $(FILES) $(ARCHIVE)/doc/spoiler-html patchlist:: echo $(FILES) > .patchlist