From 14b4a19b37bb61b7a6c63ebcfed0d53da5f75700 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 25 May 2011 22:03:36 -0400 Subject: [PATCH] Added install and uninstall targets to Makefile for info doc --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 748fb63..abdb27f 100644 --- a/Makefile +++ b/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}"