Software /
code /
prosody
Comparison
Makefile @ 1090:e47310ca513b
Makefile: Process and install prosodyctl
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 02 May 2009 20:30:50 +0100 |
parent | 993:b2e9456dc200 |
child | 1299:997ac65a85f4 |
comparison
equal
deleted
inserted
replaced
1089:a817cbaa0f46 | 1090:e47310ca513b |
---|---|
10 INSTALLEDSOURCE = $(PREFIX)/lib/prosody | 10 INSTALLEDSOURCE = $(PREFIX)/lib/prosody |
11 INSTALLEDCONFIG = $(SYSCONFDIR) | 11 INSTALLEDCONFIG = $(SYSCONFDIR) |
12 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules | 12 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules |
13 INSTALLEDDATA = $(DATADIR) | 13 INSTALLEDDATA = $(DATADIR) |
14 | 14 |
15 all: prosody.install prosody.cfg.lua.install | 15 all: prosody.install prosodyctl.install prosody.cfg.lua.install |
16 $(MAKE) -C util-src install | 16 $(MAKE) -C util-src install |
17 | 17 |
18 install: prosody.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so | 18 install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so |
19 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) | 19 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) |
20 install -d $(CONFIG)/certs | 20 install -d $(CONFIG)/certs |
21 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util | 21 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util |
22 install ./prosody.install $(BIN)/prosody | 22 install ./prosody.install $(BIN)/prosody |
23 install ./prosodyctl.install $(BIN)/prosodyctl | |
23 install -m644 core/* $(SOURCE)/core | 24 install -m644 core/* $(SOURCE)/core |
24 install -m644 net/* $(SOURCE)/net | 25 install -m644 net/* $(SOURCE)/net |
25 install -m644 util/* $(SOURCE)/util | 26 install -m644 util/* $(SOURCE)/util |
26 install -m644 plugins/* $(MODULES) | 27 install -m644 plugins/* $(MODULES) |
27 install -m644 certs/* $(CONFIG)/certs | 28 install -m644 certs/* $(CONFIG)/certs |
29 test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua | 30 test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua |
30 $(MAKE) install -C util-src | 31 $(MAKE) install -C util-src |
31 | 32 |
32 clean: | 33 clean: |
33 rm -f prosody.install | 34 rm -f prosody.install |
35 rm -f prosodyctl.install | |
34 rm -f prosody.cfg.lua.install | 36 rm -f prosody.cfg.lua.install |
35 $(MAKE) clean -C util-src | 37 $(MAKE) clean -C util-src |
36 | 38 |
37 util/encodings.so: | 39 util/encodings.so: |
38 $(MAKE) install -C util-src | 40 $(MAKE) install -C util-src |
50 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 52 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ |
51 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ | 53 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ |
52 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ | 54 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ |
53 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install | 55 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install |
54 | 56 |
57 prosodyctl.install: prosodyctl | |
58 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | |
59 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ | |
60 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ | |
61 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosodyctl > prosodyctl.install | |
62 | |
55 prosody.cfg.lua.install: | 63 prosody.cfg.lua.install: |
56 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install | 64 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install |
57 | 65 |