Mercurial > hg > batmud > maputils
annotate maps/Makefile @ 299:ed5dfa77511f
Removed '-f' option.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 19 Jun 2007 14:45:09 +0000 |
parents | 5482736f3913 |
children | 747d53068fe4 |
rev | line source |
---|---|
228 | 1 include ../Makefile.inc |
155 | 2 include Makefile.inc |
39 | 3 |
4 # | |
99 | 5 # Target rules |
39 | 6 # |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
7 all: $(patsubst %.map,%.ppm,$(MAPLIST)) $(TARGETS) |
39 | 8 |
237 | 9 laenor.map: |
10 cat ~/mapping.log | grep -v "^$$" > tmp | |
11 $(MKSPECIAL_BIN) -v -o $@ -r 100 -R 65 -m 40 tmp -a -d -I $(patsubst %.map,%.initial,$@) | |
215 | 12 |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
13 %.tmp: %.map %.loc $(MKLOC_BIN) |
67 | 14 $(MKLOC_BIN) -v -o $@ -m $< -l $(patsubst %.map,%.loc,$<) |
39 | 15 |
67 | 16 %.ansi: %.tmp %.desc $(COLORANSI_BIN) |
88 | 17 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f ansi -o $@ $< |
39 | 18 |
67 | 19 %.html: %.tmp %.desc $(COLORMAP_BIN) |
90 | 20 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f xhtml -o $@ $< |
95
0d2b25e342df
Also make PNG images from maps
Matti Hamalainen <ccr@tnsp.org>
parents:
90
diff
changeset
|
21 |
99 | 22 %.script: %.map %.loc $(MKLOC_BIN) |
255
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
23 $(MKLOC_BIN) -vS -m $< -l $(patsubst %.map,%.loc,$<) -i $(LOCSCALE) -s $(MAPSCALE) | \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
24 sed -e "s/@OPTS_START@/-font MonospaceBold.ttf -pointsize 14 -type TruecolorMatte/g" \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
25 -e "s/@OPTS_END@/\t-geometry +0+5 world-title.png -composite -compose screen \\\\\n\t-pointsize 20 -fill white -box none -draw \"text 10,35 \'@PAF@\n\n\n/g" | \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
26 sed -e "/@PAF@/r $(patsubst %.map,%.desc,$<)" -e "s/@PAF@//g" > $@ |
99 | 27 |
28 %.ppm: %.map $(MAP2PPM_BIN) | |
134
9c3d01078ae0
Use pnmscale instead of pamscale
Matti Hamalainen <ccr@tnsp.org>
parents:
122
diff
changeset
|
29 $(MAP2PPM_BIN) -v $< | pnmscale $(MAPSCALE) -nomix > $@ |
99 | 30 |
107 | 31 %.png: %.ppm %.script %.desc |
255
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
32 /bin/sh $(patsubst %.ppm,%.script,$<) $< $@ |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
33 |
107 | 34 %.jpg: %.ppm %.script %.desc |
255
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
35 /bin/sh $(patsubst %.ppm,%.script,$<) $< $@ |
99 | 36 |
37 world.map: $(MAPLIST) $(COMBINE_BIN) | |
38 $(COMBINE_BIN) -v -f "~" $(MAPLISTOFFS) -o $@ | |
39 | |
40 world.loc: $(patsubst %.map,%.loc,$(MAPLIST)) | |
41 for i in $(MAPLISTOFFS); do $(MKLOC_BIN) -v -L -l `echo "$$i"|sed "s/^\([^\.]*\).map:.*/\1.loc/"` -m `echo "$$i"|sed "s/^\([^:]*\):\([0-9]*\):\([0-9]*\)/\1 -x \2 -y \3/"`; done > $@ | |
42 | |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
43 world.ppm: world.map $(MAP2PPM_BIN) |
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
44 $(MAP2PPM_BIN) -v $< | pnmscale $(WORLDMAPSCALE) -verbose > $@ |
99 | 45 |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
46 world.script: world.map world.loc $(MKLOC_BIN) |
255
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
47 $(MKLOC_BIN) -vnS -m $< -l $(patsubst %.map,%.loc,$<) -i $(WORLDLOCSCALE) -s $(WORLDMAPSCALE) | \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
48 sed -e "s/@OPTS_START@/-font Bandal.ttf -pointsize 10 -type TruecolorMatte/g" \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
49 -e "s/@OPTS_END@/\t-geometry +220+15 world-title.png -composite -compose screen \\\\\n\t-pointsize 30 -fill white -box none -draw \"text 10,30 \'\n@PAF@\n\n/g" | \ |
be481e1dca9e
Updated and improved generation of image-format maps.
Matti Hamalainen <ccr@tnsp.org>
parents:
237
diff
changeset
|
50 sed -e "/@PAF@/r $(patsubst %.map,%.desc,$<)" -e "s/@PAF@//g" > $@ |
39 | 51 |
52 # | |
53 # Special targets | |
54 # | |
119
77dda62649ec
Added some pcities and locations
Matti Hamalainen <ccr@tnsp.org>
parents:
113
diff
changeset
|
55 upload: $(TARGETS) *.loc world.jpg |
103
58a07f7c50b7
Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
99
diff
changeset
|
56 scp $? $(UPURL) |
107 | 57 scp $? $(UPURL2) |
141 | 58 touch $@ |
95
0d2b25e342df
Also make PNG images from maps
Matti Hamalainen <ccr@tnsp.org>
parents:
90
diff
changeset
|
59 |
291
b78d089a0cf4
Upload target for location files only.
Matti Hamalainen <ccr@tnsp.org>
parents:
255
diff
changeset
|
60 uploc: *.loc |
b78d089a0cf4
Upload target for location files only.
Matti Hamalainen <ccr@tnsp.org>
parents:
255
diff
changeset
|
61 scp $+ $(UPURL) |
b78d089a0cf4
Upload target for location files only.
Matti Hamalainen <ccr@tnsp.org>
parents:
255
diff
changeset
|
62 scp $+ $(UPURL2) |
b78d089a0cf4
Upload target for location files only.
Matti Hamalainen <ccr@tnsp.org>
parents:
255
diff
changeset
|
63 |
39 | 64 clean: |
299 | 65 $(RM) $(TARGETS) *.o |
39 | 66 |
67 srcclean: clean | |
299 | 68 $(RM) *~ |
39 | 69 |
297
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
70 update: |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
71 @echo "* Updating from SVN ..." |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
72 @svn update |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
73 |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
74 .changelog: update |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
75 @echo "* Making ChangeLog ..." |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
76 @svn2cl --strip-prefix "maputils/trunk/maps/" --group-by-day --include-rev |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
77 @touch $@ |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
78 |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
79 ChangeLog: .changelog |
5482736f3913
ChangeLog generation target added.
Matti Hamalainen <ccr@tnsp.org>
parents:
291
diff
changeset
|
80 |