diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2014-03-10 12:42:26 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2014-03-11 14:02:46 +0000 |
commit | 2cfb31e938bc94c2da2cdeb33c3bc69b04bfa932 (patch) | |
tree | 7845c24c05e6d5bd9b1214eb60b64b30d8bdb284 | |
parent | 4109f02a707146e9cbefdb484173725c45f022a6 (diff) | |
download | gitano-2cfb31e938bc94c2da2cdeb33c3bc69b04bfa932.tar.gz |
Install plugins during `make install`
Gitano *may* ship with plugins which need to be installed during the running of
`make install` -- as such, support this in the Makefile.
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -123,7 +123,7 @@ bin/%: bin/%.in $(GEN_BIN) testing/%: testing/%.in $(GEN_BIN) $(call GEN_LOCAL_BIN,$<,$@) -install: install-bins install-lib-bins install-mods install-skel install-man +install: install-bins install-lib-bins install-mods install-skel install-man install-plugins install-man: mkdir -p $(MAN_INST_PATH)/man1 @@ -147,6 +147,13 @@ install-skel: install -m 644 skel/$$SKELFILE $(SKEL_INST_PATH)/$$SKELFILE; \ done +install-plugins: + mkdir -p $(DESTDIR)$(INST_ROOT)/lib/gitano/plugins + mkdir -p $(DESTDIR)$(SYSCONF_DIR)/gitano/plugins + for PLUGIN in $(PLUGINS); do \ + install -m 644 plugins/$$PLUGIN $(DESTDIR)$(INST_ROOT)/lib/gitano/plugins; \ + done + test: local $(TEST_BINS) @$(YARN) --env GTT="$$(pwd)/testing/gitano-test-tool" \ --env LUA_PATH="$(LUA_PATH)" --env LUA_CPATH="$(LUA_CPATH)" \ |