diff options
author | Badlop <badlop@process-one.net> | 2021-10-13 19:38:31 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2021-10-14 15:26:41 +0200 |
commit | db920b7d7b958a0c57fcde23102954a831981760 (patch) | |
tree | c590a4f283533d2ff67c7f376bed00e066d01f73 | |
parent | Update 'xmpp' dependency (diff) |
Only install some files when option enabled in configure (#3633)
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 6549665f7..45e223ca2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -249,7 +249,15 @@ $(call TO_DEST,priv/bin/captcha.sh): tools/captcha.sh $(call TO_DEST,priv/bin) $(call TO_DEST,priv/lua/redis_sm.lua): priv/lua/redis_sm.lua $(call TO_DEST,priv/lua) $(INSTALL) -m 644 $< $@ -copy-files-sub2: $(call TO_DEST,$(DEPS_FILES) $(MAIN_FILES) priv/bin/captcha.sh priv/sql/lite.sql priv/sql/lite.new.sql priv/lua/redis_sm.lua) +ifeq (@sqlite@,true) +SQLITE_FILES = priv/sql/lite.sql priv/sql/lite.new.sql +endif + +ifeq (@redis@,true) +REDIS_FILES = priv/lua/redis_sm.lua +endif + +copy-files-sub2: $(call TO_DEST,$(DEPS_FILES) $(MAIN_FILES) priv/bin/captcha.sh $(SQLITE_FILES) $(REDIS_FILES)) .PHONY: $(call TO_DEST,$(DEPS_FILES) $(MAIN_DIRS) $(DEPS_DIRS)) |