Mercurial > hg > batmud > maputils
annotate Makefile.maps @ 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 | 9ef91b0032f3 |
children |
rev | line source |
---|---|
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2510
diff
changeset
|
1 ### |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2510
diff
changeset
|
2 ### Common Make rules for some map targets |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2510
diff
changeset
|
3 ### |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2510
diff
changeset
|
4 |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 ### Intermediate file targets |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 %.tmp1: %.map %.loc $(MKLOC_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 @echo "MKLOC $@" |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 @$(MKLOC_BIN) $(MKLOC_OPTS) -o $@ -m $< -l $(patsubst %.map,%.loc,$<) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 %.tmp2: %.map %.loc $(MKLOC_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 @echo "MKLOC $@" |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 @$(MKLOC_BIN) $(MKLOC_OPTS) -N -o $@ -m $< -l $(patsubst %.map,%.loc,$<) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 %.tmp3: %.loc $(MKLOC_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 @echo "MKLOC $@" |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 @$(MKLOC_BIN) $(MKLOC_OPTS) -M -l $< -o $@ |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 ### HTML format maps |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 %.htm: %.tmp1 %.desc $(COLORMAP_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 @echo "COLORMAP $@" |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 @$(COLORMAP_BIN) $(COLORMAP_OPTS) $(COLORMAP_HTML) $(COLORMAP_EXTRA) -t "`cat $(patsubst %.tmp1,%.desc,$<)`" -o $@ $< |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
27 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
28 %.html: %.tmp2 %.desc %.tmp3 $(COLORMAP_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
29 @echo "COLORMAP $@" |
2575
9d147f7d809c
Rename util.js to worldmap.js to better reflect its functionality.
Matti Hamalainen <ccr@tnsp.org>
parents:
2557
diff
changeset
|
30 @$(COLORMAP_BIN) $(COLORMAP_OPTS) -J worldmap.js $(COLORMAP_HTML) -P $(COLORMAP_EXTRA) -t "`cat $(patsubst %.tmp2,%.desc,$<)`" $< | \ |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
31 sed -e "/@LOCATIONS@/r $(patsubst %.tmp2,%.tmp3,$<)" -e "s/@LOCATIONS@//g" > $@ |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
32 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
33 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
34 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
35 ### ANSI text |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
36 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
37 %.ansi: %.tmp1 %.desc $(COLORMAP_BIN) |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
38 @echo "COLORMAP $@" |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
39 @$(COLORMAP_BIN) $(COLORMAP_OPTS) $(COLORMAP_EXTRA) -f ansi -t "`cat $(patsubst %.tmp1,%.desc,$<)`" -o $@ $< |
2621
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
40 |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
41 |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
42 ### |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
43 ### Diff target between .map file and .new file. Makes necessary changes in .map and .loc |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
44 ### |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
45 %.diff: %.map %.new |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
46 @echo "DIFFING $< ..." |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
47 @if $(DIFFMAP_BIN) $(DIFFMAP_OPTS) $+ -o $@ -a; then \ |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
48 $(PATCHMAP_BIN) $< $@ -o $<; \ |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
49 fi |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
50 @$(MKLOC_BIN) $(MKLOC_DIFF_OPTS) -v -m $(patsubst %.map,%.new,$<) -l $(patsubst %.map,%.loc,$<) -L -g -o $(patsubst %.map,%.nloc,$<) |
9ef91b0032f3
Refactor some of the 'make diff' code to Makefile.maps and add 'diff' target to old/Makefile too.
Matti Hamalainen <ccr@tnsp.org>
parents:
2575
diff
changeset
|
51 @diff -ubB $(patsubst %.map,%.loc,$<) $(patsubst %.map,%.nloc,$<) | patch |