forked from simshaun/jquery-validation-tooltips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (25 loc) · 833 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
34
35
36
SRC_DIR = .
BUILD_DIR = build
PREFIX = .
DIST_DIR = ${PREFIX}
JS_ENGINE ?= `which node nodejs 2>/dev/null`
COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
MODULES = ${SRC_DIR}/jquery.validate.tooltips.js
STYLESHEETS = ${SRC_DIR}/jquery.validate.tooltips.css
JQVTOOLTIPS = ${DIST_DIR}/jquery.validate.tooltips.js
JQVTOOLTIPS_MIN = ${DIST_DIR}/jquery.validate.tooltips.min.js
all: core
core: min
@@echo "Build complete."
min: ${JQVTOOLTIPS_MIN}
${JQVTOOLTIPS_MIN}: ${JQVTOOLTIPS}
@@if test ! -z ${JS_ENGINE}; then \
echo "Minifying script" ${JQVTOOLTIPS}; \
${COMPILER} ${JQVTOOLTIPS} > ${JQVTOOLTIPS_MIN}; \
else \
echo "You must have NodeJS installed in order to minify the script."; \
fi
clean:
@@echo "Removing minified file:" ${JQVTOOLTIPS_MIN}
@@rm -f ${JQVTOOLTIPS_MIN}
.PHONY: all core min clean