annotate maps/Makefile @ 90:15408e829029

Fixed typo
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 16 Dec 2006 13:58:21 +0000
parents 872a13e83a2d
children 0d2b25e342df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Settings
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
4 TARGETS=laenor.html laenor.ansi \
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
5 roth.ansi roth.html \
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
6 luc.ansi luc.html \
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
7 furn.html furn.ansi \
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
8 deso.ansi deso.html
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
9
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
10 UPURL=mhamalai@students.oamk.fi:public_html/bat/maps/
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
11
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 BINPATH=../
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 EXEEXT=
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # Utils
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 COLORMAP_BIN=$(BINPATH)colormap$(EXEEXT)
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 MKLOC_BIN=$(BINPATH)mkloc$(EXEEXT)
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 # Target rules
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 all: $(TARGETS)
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
80
16e4674264c2 Updated locations
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
28 %.nloc: %.loc
16e4674264c2 Updated locations
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
29 grep -v UNK $< > $@
16e4674264c2 Updated locations
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
30 $(MKLOC_BIN) -v -g -l $@ -m $(patsubst %.loc,%.map,$<) -o $@
16e4674264c2 Updated locations
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
31
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
32 %.tmp: %.map %.loc
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
33 $(MKLOC_BIN) -v -o $@ -m $< -l $(patsubst %.map,%.loc,$<)
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
34 scp $(patsubst %.map,%.loc,$<) $(UPURL)
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
36 %.ansi: %.tmp %.desc $(COLORANSI_BIN)
88
872a13e83a2d Utilize the new colormap
Matti Hamalainen <ccr@tnsp.org>
parents: 80
diff changeset
37 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f ansi -o $@ $<
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
38 scp $@ $(UPURL)
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
40 %.html: %.tmp %.desc $(COLORMAP_BIN)
90
15408e829029 Fixed typo
Matti Hamalainen <ccr@tnsp.org>
parents: 88
diff changeset
41 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f xhtml -o $@ $<
67
8c79775ac44f Updated Makefile
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
42 scp $@ $(UPURL)
39
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 # Special targets
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 #
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 clean:
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 $(RM) -f $(TARGETS) *.o
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 srcclean: clean
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 $(RM) -f *~
fa68caaf3c94 New maps
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52