-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (37 loc) · 1.07 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
CSS=build/css/style.css
APP=build/js/compiled/moonhenge.js
IDX=build/index.html
IMG=build/img/sprites.png
IMG_PUBLIC=$(subst build,resources/public,$(IMG))
SFX_SOURCE=$(wildcard resources/public/sfx/*.ogg)
SFX=$(subst resources/public,build,$(SFX_SOURCE))
MUSIC_SOURCE=$(wildcard resources/public/music/*.ogg)
MUSIC=$(subst resources/public,build,$(MUSIC_SOURCE))
ME=$(shell basename $(shell pwd))
REPO=git@github.com:retrogradeorbit/moonhenge.git
all: $(APP) $(CSS) $(IDX) $(IMG) $(SFX) $(MUSIC)
$(CSS): resources/public/css/style.css
mkdir -p $(dir $(CSS))
cp $< $@
$(APP): src/**/** project.clj
rm -f $(APP)
lein cljsbuild once min
$(IDX): resources/public/index.html
cp $< $@
$(IMG): $(IMG_PUBLIC)
mkdir -p build/img/
cp $? build/img/
$(SFX): $(SFX_SOURCE)
mkdir -p build/sfx/
cp $? build/sfx/
$(MUSIC): $(MUSIC_SOURCE)
mkdir -p build/music/
cp $? build/music/
clean:
lein clean
rm -rf $(CSS) $(APP) $(IDX) $(IMG) $(SFX) $(MUSIC)
test-server: all
cd build && python -m SimpleHTTPServer
setup-build-folder:
git clone $(REPO) build/
cd build && git checkout gh-pages