Mercurial > hg > batmud > maputils
view old/Makefile @ 2833:d0e186348cb2 default tip
Add mention of soft level limitation to 'Eightleg woods'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 26 May 2024 20:33:53 +0300 |
parents | 041405e3c698 |
children |
line wrap: on
line source
### ### Includes and settings ### include ../config.mak include ../Makefile.maps include ../Makefile.paths BINPATH=../bin/ EXEEXT= WORLDMAP_PATH = ../world/ MAP_SCALE = 10 COLORMAP_EXTRA = -O DIFFMAP_OPTS = -O OLDMAPS=$(wildcard world/*.map) hcbat.map TARGETS=\ $(patsubst %.map,%.html,$(OLDMAPS)) \ $(patsubst %.map,%.htm,$(OLDMAPS)) \ $(patsubst %.map,%.ansi,$(OLDMAPS)) \ batcity.html \ worldmap.js citymap.js misc.css ### ### Target rules ### all: $(TARGETS) batcity.html: batcity.map batcity.loc citymap.js ../misc/misc.html misc.css $(MKCITYMAP_BIN) $(MKCITYMAP_BIN) $(MKCITYMAP_OPTS) -h ../misc/misc.html -t "Old BatCity map" $< batcity.loc -o "$@" world/%.desc: world.desc @ln -s $(abspath $<) $@ world/%.loc: world.loc @ln -s $(abspath $<) $@ %.loc: %.ref mapref.pl $(addprefix $(WORLDMAP_PATH),$(addsuffix .loc,$(WORLD_MAPS))) @if command -v perl > /dev/null; then \ echo "Generating $@"; \ perl -w ./mapref.pl $+ > $@; \ else \ echo "WARNING: Perl not found, not updating $@"; \ fi # Remove all temporary .diff files cleardiff: $(RM) *.diff # Diff target - run diff for each .map and .new # Finally do 'hg diff' to show changes. diff: cleardiff $(addsuffix .diff,hcbat) @hg diff . %.js:: ../src/%.js @ln -s $< $@ misc.css: ../misc/misc.css @ln -s $< $@ upload: $(TARGETS) *.loc $(RSCP_COMMAND) $? $(RSCP_UPLOAD_URL) @touch $@ clean: $(RM) $(TARGETS) *.o srcclean: clean $(RM) *~