-
Notifications
You must be signed in to change notification settings - Fork 91
/
Makefile
33 lines (25 loc) · 987 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
VERSION=1.2.2
NAME=jquery.timepicker-${VERSION}
SOURCES=${NAME}.js ${NAME}.css
COMPRESSED=${NAME}.min.js ${NAME}.min.css
MISC=AUTHORS CHANGELOG GPL-LICENSE.txt MIT-LICENSE.txt README.md
FILES=${SOURCES} ${COMPRESSED} ${MISC}
BUILD=builds/jquery-timepicker-${VERSION}.zip
build: ${NAME}.js ${NAME}.css
cp jquery.timepicker.js ${NAME}.js
cp jquery.timepicker.css ${NAME}.css
mkdir -p `dirname ${BUILD}`
zip ${BUILD} ${FILES}
${NAME}.js:
curl -d compilation_level=WHITESPACE_ONLY \
-d output_format=text \
-d output_info=compiled_code \
--data-urlencode [email protected] \
http://closure-compiler.appspot.com/compile > jquery.timepicker.min.js
cp jquery.timepicker.min.js jquery.timepicker-${VERSION}.min.js
${NAME}.css:
curl http://mabblog.com/cssoptimizer/service.php \
-F "data=<jquery.timepicker.css" > jquery.timepicker.min.css
cp jquery.timepicker.min.css jquery.timepicker-${VERSION}.min.css
clean:
rm ${SOURCES} ${COMPRESSED}