aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-29 02:23:48 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-29 02:23:48 +0000
commit2e0ae8ed92e4801866f5486c6595c7e6c74d3a0a (patch)
tree4d268ffbf9cb664141c06b7634303b1eb649c51b
parentdcf87bb7c912e4206aae1fd3c959d87e8f59242f (diff)
downloadprosody-2e0ae8ed92e4801866f5486c6595c7e6c74d3a0a.tar.gz
prosody-2e0ae8ed92e4801866f5486c6595c7e6c74d3a0a.zip
More Makefile improvements
-rw-r--r--Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 00826f54..cca246a6 100644
--- a/Makefile
+++ b/Makefile
@@ -4,18 +4,28 @@ include config.unix
BIN = $(DESTDIR)$(PREFIX)/bin
CONFIG = $(DESTDIR)$(SYSCONFDIR)
MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules
-
-SOURCEDIR = $(DESTDIR)$(PREFIX)/lib/prosody
+SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody
all:
$(MAKE) all -C util-src
-install: prosody
- install -d $(BIN) $(CONFIG) $(MODULES)
+install: prosody util/encodings.so util/encodings.so
+
+ install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE)
+ install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util
install ./prosody $(BIN)
+ install -m644 core/* $(SOURCE)/core
+ install -m644 net/* $(SOURCE)/net
+ install -m644 util/* $(SOURCE)/util
install -m644 plugins/* $(MODULES)
install -m644 prosody.cfg.lua $(CONFIG)
$(MAKE) install -C util-src
clean:
$(MAKE) clean -C util-src
+
+util/encodings.so:
+ $(MAKE) install -C util-src
+
+util/hashes.so:
+ $(MAKE) install -C util-src