aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-09-28 12:04:07 +0200
committerKim Alvefur <zash@zash.se>2012-09-28 12:04:07 +0200
commitaa1fe37ca5d21921b3ccf24b1b7b99bb3eb2d675 (patch)
tree77e1ae89e7757363e23d4487e00aa48fe99e5b62 /Makefile
parent1a8ef08c9540f782e647eabb0a1f7c6cc056ff82 (diff)
downloadprosody-aa1fe37ca5d21921b3ccf24b1b7b99bb3eb2d675.tar.gz
prosody-aa1fe37ca5d21921b3ccf24b1b7b99bb3eb2d675.zip
configure, Makefile: Allow runtime to be overridden.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1acdd051..0e69192a 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,8 @@ util/%.so:
$(MAKE) install -C util-src
%.install: %
- sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
+ sed "1s/\blua\b/$(RUNWITH)/; \
+ s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \
s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@