aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-29 02:07:33 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-29 02:07:33 +0000
commitdcf87bb7c912e4206aae1fd3c959d87e8f59242f (patch)
tree177fbb997b71adf8bd842d00e6e245220d8f9997 /Makefile
parent625abbc37426b1a680128e29599c9f1e8fd4bf48 (diff)
downloadprosody-dcf87bb7c912e4206aae1fd3c959d87e8f59242f.tar.gz
prosody-dcf87bb7c912e4206aae1fd3c959d87e8f59242f.zip
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..00826f54
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+
+include config.unix
+
+BIN = $(DESTDIR)$(PREFIX)/bin
+CONFIG = $(DESTDIR)$(SYSCONFDIR)
+MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules
+
+SOURCEDIR = $(DESTDIR)$(PREFIX)/lib/prosody
+
+all:
+ $(MAKE) all -C util-src
+
+install: prosody
+ install -d $(BIN) $(CONFIG) $(MODULES)
+ install ./prosody $(BIN)
+ install -m644 plugins/* $(MODULES)
+ install -m644 prosody.cfg.lua $(CONFIG)
+ $(MAKE) install -C util-src
+
+clean:
+ $(MAKE) clean -C util-src