Added install and uninstall targets to Makefile for info doc
parent
20ed143b83
commit
14b4a19b37
11
Makefile
11
Makefile
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue