aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-29 17:22:05 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-29 17:22:05 +0000
commitd00f8a6cf6ea02592322bcb0cde0da06da4b4ead (patch)
tree62d25bfcc9edc86695c0fa9bf3df40f9cff60bd6 /Makefile
parentc753bc5f00687c856fa6b76a3baad94c263e6de9 (diff)
downloadprosody-d00f8a6cf6ea02592322bcb0cde0da06da4b4ead.tar.gz
prosody-d00f8a6cf6ea02592322bcb0cde0da06da4b4ead.zip
Update Makefile to set correct paths on install with Debian package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a96d2e5..2bebb836 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,11 @@ CONFIG = $(DESTDIR)$(SYSCONFDIR)
MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules
SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody
+INSTALLEDSOURCE = $(PREFIX)/lib/prosody
+INSTALLEDCONFIG = $(SYSCONFDIR)
+INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules
+
+
all:
$(MAKE) all -C util-src
@@ -31,5 +36,5 @@ util/hashes.so:
$(MAKE) install -C util-src
prosody.install: prosody
- sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(SOURCE)';|;s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(CONFIG)';|;s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(MODULES)/';|;" prosody > prosody.install
+ sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|;s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" prosody > prosody.install