Comparison

Makefile @ 6044:1ce05d38d1bb

Makefile: Change sed regex to be compatible with FreeBSD's odd sed, and change / to | to allow paths to be used in RUNWITH (thanks Ben)
author Matthew Wild <mwild1@gmail.com>
date Sun, 30 Mar 2014 09:16:27 +0100
parent 5933:56b1f151f4a3
child 6406:f04a6c700b2f
child 6574:cd0088c73daf
comparison
equal deleted inserted replaced
6043:29d2dd705148 6044:1ce05d38d1bb
53 53
54 util/%.so: 54 util/%.so:
55 $(MAKE) install -C util-src 55 $(MAKE) install -C util-src
56 56
57 %.install: % 57 %.install: %
58 sed "1s/\blua\b/$(RUNWITH)/; \ 58 sed "1s| lua$$| $(RUNWITH)|; \
59 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ 59 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
60 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ 60 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
61 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ 61 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \
62 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@ 62 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@
63 63