This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
44 lines (31 loc) · 1.45 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
# When version is changed, it must also be changed in src/core.js and package.json
export TALKIE_MAJOR_VERSION=1.3
export TALKIE_VERSION=1.3.0
export TALKIE_UI_VERSION=1.0
UGLIFY=node_modules/uglify-js/bin/uglifyjs
UGLIFY_OPTS=-m -c
LESSC=node_modules/less/bin/lessc
LESSC_OPTS=
.PHONY: all clean demos publish publish-demos
all: talkie-$(TALKIE_MAJOR_VERSION).js talkie-$(TALKIE_MAJOR_VERSION).min.js talkie.css
clean:
@rm -f talkie-$(TALKIE_VERSION).js talkie-$(TALKIE_VERSION).min.js
demos:
./demos.sh
publish: all
scp talkie-$(TALKIE_VERSION)*.js kiln:kiln.it/
ssh kiln 'cd kiln.it && ln -sf talkie-$(TALKIE_VERSION).js talkie-$(TALKIE_MAJOR_VERSION).js && ln -sf talkie-$(TALKIE_VERSION).min.js talkie-$(TALKIE_MAJOR_VERSION).min.js'
scp talkie.css kiln:kiln.it/talkie/ui/$(TALKIE_UI_VERSION)/
scp images/* kiln:kiln.it/talkie/ui/$(TALKIE_UI_VERSION)/images/
publish-demos: publish demos
bin/publish-demos
talkie-$(TALKIE_VERSION).js: src/core.js src/events.js src/maps.js src/ui.js src/slider.js src/animation.js src/timeline.js src/jquery.js
./build.sh $^ > [email protected] && mv [email protected] $@
talkie-$(TALKIE_MAJOR_VERSION).js: talkie-$(TALKIE_VERSION).js
@ln -sf talkie-$(TALKIE_VERSION).js talkie-$(TALKIE_MAJOR_VERSION).js
talkie-$(TALKIE_MAJOR_VERSION).min.js: talkie-$(TALKIE_VERSION).min.js
@ln -sf talkie-$(TALKIE_VERSION).min.js talkie-$(TALKIE_MAJOR_VERSION).min.js
%.min.js: %.js
$(UGLIFY) $(UGLIFY_OPTS) -- $^ > $@
%.css: %.less
$(LESSC) $(LESSC_OPTS) $< $@