45 lines
761 B
Makefile
45 lines
761 B
Makefile
# libeye.js Makefile to build minimized and obfuscated version for release
|
|
#
|
|
# http://yui.github.io/yuicompressor/
|
|
# https://github.com/jsdoc3/jsdoc
|
|
|
|
YUI = yuicompressor-2.4.8.jar
|
|
JSDOC = ~/node_modules/.bin/jsdoc
|
|
|
|
BUNDLE = libeye.min.js
|
|
|
|
SRCS = eyedrbg.js \
|
|
eyeperms.js \
|
|
eyering.js \
|
|
uuid.js
|
|
|
|
MINS = eyedrbg-min.js \
|
|
eyeperms-min.js \
|
|
eyering-min.js \
|
|
uuid-min.js
|
|
|
|
install: clean compile bundle
|
|
@echo installed
|
|
|
|
compile: ${SRCS}
|
|
mkdir -p js
|
|
cp ${SRCS} js
|
|
|
|
bundle: ${SRCS}
|
|
@echo minimizing
|
|
java -jar ${YUI} -o '.js$$:-min.js' ${SRCS}
|
|
cat ${MINS} > ${BUNDLE}
|
|
rm ${MINS}
|
|
|
|
docs: ${SRCS}
|
|
@echo generating jsdoc
|
|
${JSDOC} ${SRCS}
|
|
|
|
clean:
|
|
@echo clean
|
|
rm -f ${MINS}
|
|
rm -f ${BUNDLE}
|
|
|
|
test:
|
|
@echo No tests for libeye.js
|