diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-29 17:22:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-29 17:22:05 +0000 |
commit | d00f8a6cf6ea02592322bcb0cde0da06da4b4ead (patch) | |
tree | 62d25bfcc9edc86695c0fa9bf3df40f9cff60bd6 | |
parent | c753bc5f00687c856fa6b76a3baad94c263e6de9 (diff) | |
download | prosody-d00f8a6cf6ea02592322bcb0cde0da06da4b4ead.tar.gz prosody-d00f8a6cf6ea02592322bcb0cde0da06da4b4ead.zip |
Update Makefile to set correct paths on install with Debian package
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |