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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
228
c7ed74897a5f Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 220
diff changeset
1 include ../Makefile.inc
155
a74585a0b926 Moved stuff
Matti Hamalainen <ccr@tnsp.org>
parents: 154
diff changeset
2 include Makefile.inc
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
99
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
5 # Target rules
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #
103
58a07f7c50b7 Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 99
diff changeset
7 all: $(patsubst %.map,%.ppm,$(MAPLIST)) $(TARGETS)
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
237
c0524f24bbe6 Laenor build.
Matti Hamalainen <ccr@tnsp.org>
parents: 233
diff changeset
9 laenor.map:
c0524f24bbe6 Laenor build.
Matti Hamalainen <ccr@tnsp.org>
parents: 233
diff changeset
10 cat ~/mapping.log | grep -v "^$$" > tmp
c0524f24bbe6 Laenor build.
Matti Hamalainen <ccr@tnsp.org>
parents: 233
diff changeset
11 $(MKSPECIAL_BIN) -v -o $@ -r 100 -R 65 -m 40 tmp -a -d -I $(patsubst %.map,%.initial,$@)
215
Matti Hamalainen <ccr@tnsp.org>
parents: 155
diff changeset
12
103
58a07f7c50b7 Updated locations; Makefile improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 99
diff changeset
13 %.tmp: %.map %.loc $(MKLOC_BIN)
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
14 $(MKLOC_BIN) -v -o $@ -m $< -l $(patsubst %.map,%.loc,$<)
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
16 %.ansi: %.tmp %.desc $(COLORANSI_BIN)
88
872a13e83a2d Utilize the new colormap
Matti Hamalainen <ccr@tnsp.org>
parents: 80
diff changeset
17 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f ansi -o $@ $<
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
19 %.html: %.tmp %.desc $(COLORMAP_BIN)
90
15408e829029 Fixed typo
Matti Hamalainen <ccr@tnsp.org>
parents: 88
diff changeset
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
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
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
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
27
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
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
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
30
107
3665b9b345fc Updated locations.
Matti Hamalainen <ccr@tnsp.org>
parents: 103
diff changeset
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
3665b9b345fc Updated locations.
Matti Hamalainen <ccr@tnsp.org>
parents: 103
diff changeset
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
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
36
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
37 world.map: $(MAPLIST) $(COMBINE_BIN)
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
38 $(COMBINE_BIN) -v -f "~" $(MAPLISTOFFS) -o $@
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
39
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
40 world.loc: $(patsubst %.map,%.loc,$(MAPLIST))
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
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 > $@
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
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
140dda7f853d Updates
Matti Hamalainen <ccr@tnsp.org>
parents: 95
diff changeset
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
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 # Special targets
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
3665b9b345fc Updated locations.
Matti Hamalainen <ccr@tnsp.org>
parents: 103
diff changeset
57 scp $? $(UPURL2)
141
Matti Hamalainen <ccr@tnsp.org>
parents: 136
diff changeset
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
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64 clean:
299
ed5dfa77511f Removed '-f' option.
Matti Hamalainen <ccr@tnsp.org>
parents: 297
diff changeset
65 $(RM) $(TARGETS) *.o
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67 srcclean: clean
299
ed5dfa77511f Removed '-f' option.
Matti Hamalainen <ccr@tnsp.org>
parents: 297
diff changeset
68 $(RM) *~
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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