-
Notifications
You must be signed in to change notification settings - Fork 82
/
makefile
43 lines (36 loc) · 1.17 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
DIR=~/roms
EMU=uxncli
ASM=${EMU} ${DIR}/drifblim.rom
LIN=${EMU} ${DIR}/uxnlin.rom
all: bin/maeve.rom bin/oscean.rom bin/arvelie.rom bin/directory.rom bin/marbles.rom
clean:
@ rm -f bin/* && rm -f tmp/* && rm -f site/*
lint:
@ ${LIN} src/oscean.tal
@ ${LIN} src/maeve.tal
@ ${LIN} src/arvelie.tal
@ ${LIN} src/directory.tal
@ ${LIN} src/marbles.tal
run: all
@ mkdir -p tmp && rm -f tmp/* && ${EMU} bin/maeve.rom
@ mkdir -p site && rm -f site/* && ${EMU} bin/oscean.rom
@ ${EMU} bin/directory.rom docs/
@ ${EMU} bin/directory.rom etc/
@ ${EMU} bin/arvelie.rom
@ ${EMU} bin/marbles.rom
grab:
@ mkdir -p etc/uxn5
@ cp -r ../uxn5/index.html ../uxn5/src/ ../uxn5/pyur.svg etc/uxn5/
@ mkdir -p etc/solrela
@ cp -r ../solrela/index.html ../solrela/src/ etc/solrela/
bin/maeve.rom: src/maeve.tal
@ mkdir -p bin && ${ASM} src/maeve.tal bin/maeve.rom
bin/oscean.rom: src/oscean.tal
@ ${ASM} src/oscean.tal bin/oscean.rom
bin/arvelie.rom: src/arvelie.tal
@ ${ASM} src/arvelie.tal bin/arvelie.rom
bin/directory.rom: src/directory.tal
@ ${ASM} src/directory.tal bin/directory.rom
bin/marbles.rom: src/marbles.tal
@ ${ASM} src/marbles.tal bin/marbles.rom
.PHONY: all clean grab lint run