Software /
code /
prosody
Comparison
Makefile @ 1310:b5a7a9fc9161
Makefile: Experimental support for recording the version of an installed Prosody
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 01:13:39 +0100 |
parent | 1300:954973fd2939 |
child | 1454:cc9b6ef41966 |
comparison
equal
deleted
inserted
replaced
1309:a544e68a0989 | 1310:b5a7a9fc9161 |
---|---|
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 prosodyctl.install prosody.cfg.lua.install | 15 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version |
16 $(MAKE) -C util-src install | 16 $(MAKE) -C util-src install |
17 | 17 |
18 install: prosody.install prosodyctl.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) | 19 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) |
20 install -m750 -d $(DATA) | 20 install -m750 -d $(DATA) |
27 install -m644 util/* $(SOURCE)/util | 27 install -m644 util/* $(SOURCE)/util |
28 install -m644 plugins/* $(MODULES) | 28 install -m644 plugins/* $(MODULES) |
29 install -m644 certs/* $(CONFIG)/certs | 29 install -m644 certs/* $(CONFIG)/certs |
30 install -m644 plugins/* $(MODULES) | 30 install -m644 plugins/* $(MODULES) |
31 test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua | 31 test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua |
32 test -e prosody.version && install prosody.version $(SOURCE)/prosody.version || true | |
32 $(MAKE) install -C util-src | 33 $(MAKE) install -C util-src |
33 | 34 |
34 clean: | 35 clean: |
35 rm -f prosody.install | 36 rm -f prosody.install |
36 rm -f prosodyctl.install | 37 rm -f prosodyctl.install |
37 rm -f prosody.cfg.lua.install | 38 rm -f prosody.cfg.lua.install |
39 rm -f prosody.version | |
38 $(MAKE) clean -C util-src | 40 $(MAKE) clean -C util-src |
39 | 41 |
40 util/encodings.so: | 42 util/encodings.so: |
41 $(MAKE) install -C util-src | 43 $(MAKE) install -C util-src |
42 | 44 |
62 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosodyctl > prosodyctl.install | 64 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosodyctl > prosodyctl.install |
63 | 65 |
64 prosody.cfg.lua.install: | 66 prosody.cfg.lua.install: |
65 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install | 67 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install |
66 | 68 |
69 prosody.release: | |
70 test -e .hg/dirstate && hexdump -n6 -e'6/1 "%01x"' .hg/dirstate \ | |
71 > prosody.version || true | |
72 | |
73 prosody.version: prosody.release | |
74 cp prosody.release prosody.version || true |