39
|
1 #
|
|
2 # Settings
|
|
3 #
|
67
|
4 TARGETS=laenor.html laenor.ansi \
|
|
5 roth.ansi roth.html \
|
|
6 luc.ansi luc.html \
|
|
7 furn.html furn.ansi \
|
|
8 deso.ansi deso.html
|
|
9
|
|
10 UPURL=mhamalai@students.oamk.fi:public_html/bat/maps/
|
|
11
|
39
|
12 BINPATH=../
|
|
13 EXEEXT=
|
|
14
|
|
15
|
|
16 #
|
|
17 # Utils
|
|
18 #
|
|
19 COLORMAP_BIN=$(BINPATH)colormap$(EXEEXT)
|
|
20 MKLOC_BIN=$(BINPATH)mkloc$(EXEEXT)
|
|
21
|
|
22
|
|
23 #
|
|
24 # Target rules
|
|
25 #
|
|
26 all: $(TARGETS)
|
|
27
|
80
|
28 %.nloc: %.loc
|
|
29 grep -v UNK $< > $@
|
|
30 $(MKLOC_BIN) -v -g -l $@ -m $(patsubst %.loc,%.map,$<) -o $@
|
|
31
|
67
|
32 %.tmp: %.map %.loc
|
|
33 $(MKLOC_BIN) -v -o $@ -m $< -l $(patsubst %.map,%.loc,$<)
|
|
34 scp $(patsubst %.map,%.loc,$<) $(UPURL)
|
39
|
35
|
67
|
36 %.ansi: %.tmp %.desc $(COLORANSI_BIN)
|
88
|
37 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f ansi -o $@ $<
|
67
|
38 scp $@ $(UPURL)
|
39
|
39
|
67
|
40 %.html: %.tmp %.desc $(COLORMAP_BIN)
|
90
|
41 $(COLORMAP_BIN) -t "`cat $(patsubst %.tmp,%.desc,$<)`" -vaC -f xhtml -o $@ $<
|
67
|
42 scp $@ $(UPURL)
|
39
|
43
|
|
44 #
|
|
45 # Special targets
|
|
46 #
|
|
47 clean:
|
|
48 $(RM) -f $(TARGETS) *.o
|
|
49
|
|
50 srcclean: clean
|
|
51 $(RM) -f *~
|
|
52
|