-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
51 lines (37 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AMIGA_TRACKERS = soundtracker noisetracker startrekker protracker med \
digibooster tfmx oktalyzer other-amiga
# These are actually the MS-DOS trackers
PC_TRACKERS = fasttracker screamtracker impulsetracker digitrakker \
realtracker other-pc
WIN_TRACKERS = openmpt buzz berotracker madtracker other-windows
# Any Unix goes here
LINUX_TRACKERS = other-linux
# ST, Falcon, etc
ATARI_TRACKERS = other-atari
# Portable or not tied to a specific platform
PORT_TRACKERS = schism skale milkytracker chibi renoise other-portable
TODOT = ./todot
TRACKERS = def-amiga.txt $(addsuffix .txt, $(AMIGA_TRACKERS)) \
def-pc.txt $(addsuffix .txt, $(PC_TRACKERS)) \
def-win.txt $(addsuffix .txt, $(WIN_TRACKERS)) \
def-linux.txt $(addsuffix .txt, $(LINUX_TRACKERS)) \
def-port.txt $(addsuffix .txt, $(PORT_TRACKERS)) \
def-atari.txt $(addsuffix .txt, $(ATARI_TRACKERS))
DATE = `date +%Y%m%d`
THPKG = tracker-history.tar.gz
THDIR = tracker-history-$(DATE)
all: trackers.svg trackers.ps
trackers.svg: trackers.dot
dot -Tsvg -o$@ trackers.dot
perl -pi -e 's|(^<svg).*|$$1|;s|.*?(xmlns.*)|$$1\n<script xlink:href="SVGPan.js"/>|' $@
trackers.ps: trackers.dot
dot -Tps -o$@ trackers.dot
trackers.dot: timeline.txt $(TRACKERS) $(TODOT) Makefile
$(TODOT) timeline.txt $(TRACKERS) > $@
dist:
rm -Rf $(THDIR)
mkdir $(THDIR)
cp Makefile README SVGPan.js $(TODOT) $(TRACKERS) $(THDIR)/
tar cf - $(THDIR) | gzip -c > $(THPKG)
rm -Rf $(THDIR)
ls -l $(THPKG)