forked from gre/diaporama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 1 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
48
49
50
VERSION=1.1
LESSC=lessc
LESSOPT=-x
COFFEEC=coffee
COFFEEOPT=-c
JSMINC=yuicompressor
JSMINOPT=
all: _demo demo/slider.js demo/demo.min.css demo/slider.min.css lib/slider.min.css lib/slider.min.js
_demo: demo/slider.js demo/fetchFlickr.js
cd demo && make;
demo/slider.js: lib/slider.js
cp $< $@
demo/slider.min.css: lib/slider.min.css
cp $< $@
%.min.css: %.less
${LESSC} ${LESSOPT} $< -o $@
lib/%.min.css: %.less
${LESSC} ${LESSOPT} $< -o $@
lib/%.js: %.coffee
${COFFEEC} -o $@/.. ${COFFEEOPT} $<
lib/%.min.js: lib/%.js
${JSMINC} ${JSMINOPT} $< -o $@
demo/demo.min.css: demo/demo.less
lib/slider.min.css: slider.less
lib/slider.js: slider.coffee
lib/slider.min.js: lib/slider.js
ZNAME=sliderjs-${VERSION}
zip: lib/slider.min.js lib/slider.min.css
rm -rf ${ZNAME}/ ${ZNAME}.zip
cp -R lib/ ${ZNAME}
cp demo/load*.gif ${ZNAME}
zip -r ${ZNAME}.zip ${ZNAME}
rm -rf ${ZNAME}
clean:
rm -rf demo/docs/ demo/slider.js demo/demo.min.css demo/slider.min.css lib/slider.min.css lib/slider.min.js lib/slider.js