Mercurial > hg > batmud > maputils
view old/Makefile @ 1711:fed7522d4b03
Fix HCBat map diffing by using correct options for diffmap.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Oct 2017 12:43:51 +0300 |
parents | 9a124fdb6dab |
children | 9f36cb3fdcb2 |
line wrap: on
line source
# # Settings # MAP_PATH = ../world/ MAP_SCALE = 10 COLORMAP_EXTRA = -O DIFFMAP_OPTS = -O include ../config.mak include $(MAP_PATH)config.mak # # Target rules # TARGETS=batmap.html batmap.htm batmap.ansi \ hcbat.html hcbat.htm hcbat.ansi \ batcity.html util.js all: $(TARGETS) include $(MAP_PATH)Makefile.inc %.cmap: %.raw $(MKMAP_BIN) $(MKMAP_BIN) -o $@ -r 10 -w 21 -h 21 $< -v -d -m 80 %.map: %.raw $(MKMAP_BIN) $(MKMAP_BIN) -o $@ -r 10 -w 13 -h 7 $< -v -d -m 70 batmap.map: batmap-30-11-2006.txt @ln -s $< $@ title.png: $(MAP_PATH)title.png @ln -s $< $@ MonospaceBold.ttf: $(MAP_PATH)MonospaceBold.ttf @ln -s $< $@ batcity.html: batcity.map batcity.loc tooltip.js $(MKCITYMAP_BIN) $(MKCITYMAP_OPTS) -T -t "Old BatCity map" $< batcity.loc -o "$@" twomi-batmap.ansi: twomi-batmap.tmp $(COLORMAP_BIN) $(COLORMAP_OPTS) -O -f ansi -t "`cat $(patsubst %.tmp,%.desc,$<)`" $< -o $@ twomi-batmap.html: twomi-batmap.tmp $(COLORMAP_BIN) $(COLORMAP_OPTS) -O $(COLORMAP_HTML) -t "`cat $(patsubst %.tmp,%.desc,$<)`" $< -o $@ update: hcbat.ref $(MAP_PATH)laenor.loc $(MAP_PATH)desolathya.loc $(MAP_PATH)rothikgen.loc $(MAP_PATH)furnachia.loc $(MAP_PATH)lucentium.loc perl -w ./mapref.pl $+ > hcbat.loc # # Special targets # %.js: ../%.js @ln -s $< $@ upload: $(TARGETS) *.loc @scp -C $? $(UPLOAD_URL) @touch $@ clean: $(RM) $(TARGETS) *.o srcclean: clean $(RM) *~