Software /
code /
prosody
Comparison
Makefile @ 467:66f145f5c932
Update Makefile to now pass config paths to prosody. Update prosody, modulemanager and connectionlisteners to obey these paths.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 03:27:50 +0000 |
parent | 465:9ab51c483cf3 |
child | 480:5d00d623904e |
comparison
equal
deleted
inserted
replaced
466:0ecfd89c2cc0 | 467:66f145f5c932 |
---|---|
7 SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody | 7 SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody |
8 | 8 |
9 all: | 9 all: |
10 $(MAKE) all -C util-src | 10 $(MAKE) all -C util-src |
11 | 11 |
12 install: prosody util/encodings.so util/encodings.so | 12 install: prosody.install util/encodings.so util/encodings.so |
13 | |
14 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) | 13 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) |
15 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util | 14 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util |
16 install ./prosody $(BIN) | 15 install ./prosody.install $(BIN)/prosody |
17 install -m644 core/* $(SOURCE)/core | 16 install -m644 core/* $(SOURCE)/core |
18 install -m644 net/* $(SOURCE)/net | 17 install -m644 net/* $(SOURCE)/net |
19 install -m644 util/* $(SOURCE)/util | 18 install -m644 util/* $(SOURCE)/util |
20 install -m644 plugins/* $(MODULES) | 19 install -m644 plugins/* $(MODULES) |
21 install -m644 prosody.cfg.lua.dist $(CONFIG)/prosody.cfg.lua | 20 install -m644 prosody.cfg.lua.dist $(CONFIG)/prosody.cfg.lua |
22 $(MAKE) install -C util-src | 21 $(MAKE) install -C util-src |
23 | 22 |
24 clean: | 23 clean: |
24 rm -f prosody.install | |
25 $(MAKE) clean -C util-src | 25 $(MAKE) clean -C util-src |
26 | 26 |
27 util/encodings.so: | 27 util/encodings.so: |
28 $(MAKE) install -C util-src | 28 $(MAKE) install -C util-src |
29 | 29 |
30 util/hashes.so: | 30 util/hashes.so: |
31 $(MAKE) install -C util-src | 31 $(MAKE) install -C util-src |
32 | |
33 prosody.install: prosody | |
34 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(SOURCE)';|;s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(CONFIG)';|;s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(MODULES)/';|;" prosody > prosody.install | |
35 |