diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-30 18:37:59 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-30 18:37:59 +0100 |
commit | d2732c73915f3bec423dc89d3b3d185b6b7917e3 (patch) | |
tree | 7c70dae1c4f0df070e36ebc3f4be98da201bd798 /Makefile | |
parent | 56048c5a7f47f915ed7506779fd8f75bb90bee78 (diff) | |
download | gitano-d2732c73915f3bec423dc89d3b3d185b6b7917e3.tar.gz |
INSTALLER: make install and gitano-setup should work (mostly)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -15,6 +15,7 @@ LIB_BIN_PATH := $(INST_ROOT)/lib/gitano/bin LIB_BIN_INST_PATH := $(DESTDIR)$(LIB_BIN_PATH) SHARE_PATH := $(INST_ROOT)/share/gitano SHARE_INST_PATH := $(DESTDIR)$(SHARE_PATH) +SKEL_INST_PATH := $(SHARE_INST_PATH)/skel LIB_BINS := gitano-auth gitano-post-receive-hook gitano-update-hook \ gitano-update-ssh @@ -31,6 +32,19 @@ MODS := gitano \ gitano.git gitano.git.commit gitano.git.ll gitano.git.object \ gitano.git.repository gitano.git.tag gitano.git.tree +SKEL_FILES := gitano-admin/rules/selfchecks.lace \ + gitano-admin/rules/aschecks.lace \ + gitano-admin/rules/siteadmin.lace \ + gitano-admin/rules/destroyrepo.lace \ + gitano-admin/rules/remoteconfigchecks.lace \ + gitano-admin/rules/core.lace \ + gitano-admin/rules/renamerepo.lace \ + gitano-admin/rules/defines.lace \ + gitano-admin/rules/project.lace \ + gitano-admin/rules/adminchecks.lace \ + gitano-admin/rules/createrepo.lace + + MOD_DIRS := gitano gitano/git MOD_FILES := $(patsubst %,%.lua,$(subst .,/,$(MODS))) SRC_MOD_FILES := $(patsubst %,lib/%,$(MOD_FILES)) @@ -69,7 +83,7 @@ clean: bin/%: bin/%.in $(GEN_BIN) $(call GEN_LOCAL_BIN,$<,$@) -install: install-bins install-lib-bins install-mods +install: install-bins install-lib-bins install-mods install-skel install-bins: $(BIN_SRCS) $(GEN_BIN) mkdir -p $(BIN_INST_PATH) @@ -82,3 +96,9 @@ install-lib-bins: $(LIB_BIN_SRCS) $(GEN_BIN) install-mods: $(SRC_MOD_FILES) mkdir -p $(patsubst %,$(LUA_MOD_INST_PATH)/%,$(MOD_DIRS)) $(foreach MOD,$(MOD_FILES),$(call GEN_INSTALL_MOD,lib/$(MOD),$(LUA_MOD_INST_PATH)/$(MOD))) + +install-skel: + mkdir -p $(SKEL_INST_PATH)/gitano-admin/rules + for SKELFILE in $(SKEL_FILES); do \ + install -m 644 skel/$$SKELFILE $(SKEL_INST_PATH)/$$SKELFILE; \ + done
\ No newline at end of file |