1
0
Fork 0

Added install and uninstall targets to Makefile for info doc

closure/master
Mike Gerwitz 2011-05-25 22:03:36 -04:00
parent 20ed143b83
commit 14b4a19b37
1 changed files with 10 additions and 1 deletions

View File

@ -12,7 +12,7 @@ PERF_TESTS := $(shell find "$(PATH_PERF_TEST)" -name 'perf-*.js')
PATH_DOC=./doc
PATH_DOC_OUTPUT=${PATH_BUILD}/doc
PATH_DOC_OUTPUT_INFO=${PATH_DOC_OUTPUT}/manual.info
PATH_DOC_OUTPUT_INFO=${PATH_DOC_OUTPUT}/easejs.info
PATH_DOC_OUTPUT_PLAIN=${PATH_DOC_OUTPUT}/manual.txt
PATH_DOC_OUTPUT_HTML=${PATH_DOC_OUTPUT}/manual
PATH_DOC_OUTPUT_HTML1=${PATH_DOC_OUTPUT}/manual.html
@ -23,6 +23,8 @@ PATH_DOC_INTERACTIVE_DEST=$(PATH_DOC_OUTPUT)/interactive.js \
$(PATH_DOC_OUTPUT_HTML)/interactive.js
PATH_MANUAL_TEXI=${PATH_DOC}/manual.texi
path_info_install := /usr/local/share/info
src_js := index.js $(wildcard $(PATH_LIB)/*.js)
src_tests := index.js $(wildcard $(PATH_TEST)/test-*)
doc_src := $(wildcard $(PATH_DOC)/*.texi)
@ -134,6 +136,13 @@ build/%.min.js: build/%.js
cat $(PATH_TOOLS)/license.tpl > $@
node $(PATH_TOOLS)/minify.js < $< >> $@
install: all
[ -d $(path_info_install) ] || mkdir -p $(path_info_install)
cp $(PATH_DOC_OUTPUT_INFO) $(path_info_install)
uninstall:
rm $(path_info_install)/easejs.info
# clean up build dir
clean:
rm -rf "${PATH_BUILD}"