aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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