Diff

Makefile @ 5145:53f741a5a73a

configure, Makefile: Allow runtime to be overridden.
author Kim Alvefur <zash@zash.se>
date Fri, 28 Sep 2012 12:04:07 +0200
parent 4686:5fd661424b9f
child 5472:7c631ef43b11
line wrap: on
line diff
--- a/Makefile	Tue Sep 25 22:03:35 2012 +0200
+++ b/Makefile	Fri Sep 28 12:04:07 2012 +0200
@@ -52,7 +52,8 @@
 	$(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)/';|;" < $^ > $@