Comparison

Makefile @ 481:29f974ef00a7

More Makefile improvements (install the certificates, and update the config on install to find them)
author Matthew Wild <mwild1@gmail.com>
date Sat, 29 Nov 2008 17:52:10 +0000
parent 480:5d00d623904e
child 492:279f64370885
comparison
equal deleted inserted replaced
480:5d00d623904e 481:29f974ef00a7
12 12
13 13
14 all: 14 all:
15 $(MAKE) all -C util-src 15 $(MAKE) all -C util-src
16 16
17 install: prosody.install util/encodings.so util/encodings.so 17 install: prosody.install prosody.cfg.lua util/encodings.so util/encodings.so
18 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) 18 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE)
19 install -d $(CONFIG)/certs
19 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util 20 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util
20 install ./prosody.install $(BIN)/prosody 21 install ./prosody.install $(BIN)/prosody
21 install -m644 core/* $(SOURCE)/core 22 install -m644 core/* $(SOURCE)/core
22 install -m644 net/* $(SOURCE)/net 23 install -m644 net/* $(SOURCE)/net
23 install -m644 util/* $(SOURCE)/util 24 install -m644 util/* $(SOURCE)/util
24 install -m644 plugins/* $(MODULES) 25 install -m644 plugins/* $(MODULES)
25 install -m644 prosody.cfg.lua.dist $(CONFIG)/prosody.cfg.lua 26 install -m644 certs/* $(CONFIG)/certs
27 install -m644 plugins/* $(MODULES)
28 install -m644 prosody.cfg.lua $(CONFIG)/prosody.cfg.lua
26 $(MAKE) install -C util-src 29 $(MAKE) install -C util-src
27 30
28 clean: 31 clean:
29 rm -f prosody.install 32 rm -f prosody.install
33 rm -f prosody.cfg.lua
30 $(MAKE) clean -C util-src 34 $(MAKE) clean -C util-src
31 35
32 util/encodings.so: 36 util/encodings.so:
33 $(MAKE) install -C util-src 37 $(MAKE) install -C util-src
34 38
36 $(MAKE) install -C util-src 40 $(MAKE) install -C util-src
37 41
38 prosody.install: prosody 42 prosody.install: prosody
39 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|;s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" prosody > prosody.install 43 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|;s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|;s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" prosody > prosody.install
40 44
45 prosody.cfg.lua:
46 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua
47