-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (28 loc) · 1.5 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
all: txt2txb txb2txt hogextract hogcreate
txt2txb : txt2txb.o
txb2txt : txb2txt.o
hogextract : hogextract.o
hogcreate : hogcreate.o
new_hog/descent.txb : txt2txb base_files/nd.txt
./txt2txb base_files/nd.txt new_hog/descent.txb
new_hog/palette.256 : base_files/palette.txt palcreate.py
./palcreate.py base_files/palette.txt new_hog/palette.256
base_files/palette.txt : palgen.py
./palgen.py > base_files/palette.txt
#This causes crashes because the font is too big
#new_hog/font1-1.fnt : x11_pd_fonts/10x20.png fontgen.py
# (mkdir x11_pd_fonts/10x20 && cd x11_pd_fonts/10x20 && ../../fontgen.py ../10x20.png 15 144 25 10 29 20 && ../../fontcreate.py ../../new_hog/font1-1.fnt )
new_hog/font1-1.fnt : x11_pd_fonts/7x13B.png fontgen.py
(mkdir x11_pd_fonts/7x13B && cd x11_pd_fonts/7x13B && ../../fontgen.py ../7x13B.png 16 144 24 7 22 13 && ../../fontcreate.py ../../new_hog/font1-1.fnt )
new_hog/font3-1.fnt : x11_pd_fonts/5x7.png
(mkdir x11_pd_fonts/5x7 && cd x11_pd_fonts/5x7 && ../../fontgen.py ../5x7.png 17 144 24 5 16 7 && ../../fontcreate.py ../../new_hog/font3-1.fnt )
new_hog/font2-1.fnt : new_hog/font1-1.fnt
cp $< $@
new_hog/font2-2.fnt : new_hog/font1-1.fnt
cp $< $@
new_hog/font2-3.fnt : new_hog/font1-1.fnt
cp $< $@
descent.hog : hogcreate new_hog/font3-1.fnt new_hog/font2-1.fnt new_hog/font2-2.fnt new_hog/font2-3.fnt new_hog/font1-1.fnt new_hog/palette.256 new_hog/descent.txb
(cd new_hog && ../hogcreate ../descent.hog)
descent.pig : pigcreate.py
(cd new_pig && ../pigcreate.py ../descent.pig)