-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 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
CSS=build/css/style.css
APP=build/js/compiled/atelier.js
IDX=build/index.html
# IMG=build/img/sprites.png build/img/fonts.png
# IMG_PUBLIC=$(subst build,resources/public,$(IMG))
# SFX_SOURCE=$(wildcard resources/public/sfx/*.ogg)
# SFX=$(subst resources/public,build,$(SFX_SOURCE))
ME=$(shell basename $(shell pwd))
REPO=git@github.com:infinitelives/atelier.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/
clean:
lein clean
rm -rf $(CSS) $(APP) $(IDX) $(IMG) $(SFX) $(MUSIC)
test-server: all
cd build && python -m SimpleHTTPServer
# https://help.github.com/articles/creating-project-pages-manually/
setup-build-folder:
git clone $(REPO) build/
cd build && git checkout --orphan gh-pages && git rm -rf .
create-build-folder:
git clone $(REPO) build/