aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-01 01:39:46 +0200
committerKim Alvefur <zash@zash.se>2016-10-01 01:39:46 +0200
commit7338d697a583dbc45eaee1806b7ae10b4b59f19e (patch)
tree1b216d69a63dbc954ffc315fb8641d7a7dff9f38
parent64102ef3da8681b1c1b276cfbec0f68237e0c456 (diff)
downloadprosody-7338d697a583dbc45eaee1806b7ae10b4b59f19e.tar.gz
prosody-7338d697a583dbc45eaee1806b7ae10b4b59f19e.zip
Makefile: Use install to copy plugins that live in subdirectories instead of recursive cp
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d442e452..b3e39e30 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,12 @@ install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodin
install -m644 util/*.so $(SOURCE)/util
install -d $(SOURCE)/util/sasl
install -m644 util/sasl/*.lua $(SOURCE)/util/sasl
- umask 0022 && cp -r plugins/* $(MODULES)
+ install -d $(MODULES)/mod_s2s $(MODULES)/mod_pubsub $(MODULES)/adhoc $(MODULES)/muc
+ install -m644 plugins/*.lua $(MODULES)
+ install -m644 plugins/mod_s2s/*.lua $(MODULES)
+ install -m644 plugins/mod_pubsub/*.lua $(MODULES)
+ install -m644 plugins/adhoc/*.lua $(MODULES)
+ install -m644 plugins/muc/*.lua $(MODULES)
install -m644 certs/* $(CONFIG)/certs
install -m644 man/prosodyctl.man $(MAN)/man1/prosodyctl.1
test -f $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua