39
|
1 #
|
|
2 # Settings
|
|
3 #
|
|
4 TARGETS=laenor.html laenor.ansi roth.ansi roth.html lucentium.ansi lucentium.html
|
|
5 BINPATH=../
|
|
6 EXEEXT=
|
|
7
|
|
8
|
|
9 LAENOR_DESC=Continent of Laenor @ BatMUD - mapdata by Ooga, locations and conversion by Ggr
|
|
10 ROTH_DESC=Continent of Rothikgen @ BatMUD - mapdata by Ooga, locations and conversion by Ggr
|
|
11 LUCENTIUM_DESC=Continent of Lucentium @ BatMUD - mapdata by Ooga, locations and conversion by Ggr
|
|
12
|
|
13
|
|
14 #
|
|
15 # Utils
|
|
16 #
|
|
17 COLORMAP_BIN=$(BINPATH)colormap$(EXEEXT)
|
|
18 COLORANSI_BIN=$(BINPATH)coloransi$(EXEEXT)
|
|
19 MKLOC_BIN=$(BINPATH)mkloc$(EXEEXT)
|
|
20
|
|
21
|
|
22 #
|
|
23 # Target rules
|
|
24 #
|
|
25 all: $(TARGETS)
|
|
26
|
|
27 laenor.tmp: laenor.raw laenor.loc
|
|
28 $(MKLOC_BIN) -v -o $@ -m $< -l laenor.loc
|
|
29
|
|
30 laenor.ansi: laenor.tmp $(COLORANSI_BIN)
|
|
31 echo "$(LAENOR_DESC)" > $@
|
|
32 $(COLORANSI_BIN) < $< >> $@
|
|
33
|
|
34 laenor.html: laenor.tmp $(COLORMAP_BIN)
|
|
35 $(COLORMAP_BIN) "$(LAENOR_DESC)" < $< > $@
|
|
36
|
|
37
|
|
38 roth.tmp: roth.raw roth.loc
|
|
39 $(MKLOC_BIN) -v -o $@ -m $< -l roth.loc
|
|
40
|
|
41 roth.ansi: roth.tmp $(COLORANSI_BIN)
|
|
42 echo "$(ROTH_DESC)" > $@
|
|
43 $(COLORANSI_BIN) < $< >> $@
|
|
44
|
|
45 roth.html: roth.tmp $(COLORMAP_BIN)
|
|
46 $(COLORMAP_BIN) "$(ROTH_DESC)" < $< > $@
|
|
47
|
|
48
|
|
49 lucentium.tmp: lucentium.raw lucentium.loc
|
|
50 $(MKLOC_BIN) -v -o $@ -m $< -l lucentium.loc
|
|
51
|
|
52 lucentium.ansi: lucentium.tmp $(COLORANSI_BIN)
|
|
53 echo "$(LUCENTIUM_DESC)" > $@
|
|
54 $(COLORANSI_BIN) < $< >> $@
|
|
55
|
|
56 lucentium.html: lucentium.tmp $(COLORMAP_BIN)
|
|
57 $(COLORMAP_BIN) "$(LUCENTIUM_DESC)" < $< > $@
|
|
58
|
|
59
|
|
60
|
|
61 #
|
|
62 # Special targets
|
|
63 #
|
|
64 upload: $(TARGETS) *.loc
|
|
65 scp $+ mhamalai@students.oamk.fi:public_html/bat/
|
|
66
|
|
67 # scp $+ tnsp@irc.saitti.net:public_html/
|
|
68
|
|
69
|
|
70 clean:
|
|
71 $(RM) -f $(TARGETS) *.o
|
|
72
|
|
73 srcclean: clean
|
|
74 $(RM) -f *~
|
|
75
|