-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 797 Bytes
/
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
MUSIC_SOURCES = music/prejam-dontuse.mmpz music/action.mmpz
MUSIC_FILES = $(MUSIC_SOURCES:%.mmpz=%.mp3)
SOUND_SOURCES = \
sounds/shockwave.mmpz \
sounds/repeater.mmpz \
sounds/mortar.mmpz \
sounds/mortar-shell.mmpz \
sounds/enemy-hitsound.mmpz \
sounds/enemy-die.mmpz \
sounds/turret-hitsound.mmpz \
sounds/turret-die.mmpz \
sounds/jingle-arena-lose.mmpz \
sounds/jingle-arena-win.mmpz \
SOUND_FILES = $(SOUND_SOURCES:%.mmpz=%.mp3)
LMMSFLAGS ?= -b 128 -l
%.mp3: %.mmpz
lmms render $^ -f mp3 -o $@ $(LMMSFLAGS)
build: $(MUSIC_FILES) $(SOUND_FILES)
dist: build
mkdir -p dist/
cp index.html dist/
cp style.css dist/
cp src/ dist/ -r
cp assets/ dist/ -r
mkdir -p dist/music/
cp $(MUSIC_FILES) dist/music/
mkdir -p dist/sounds/
cp $(SOUND_FILES) dist/sounds/
.PHONY: dist