Software /
code /
prosody
Comparison
Makefile @ 4402:05f8826972ba
Makefile: Merge identical rules and some other improvements.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Oct 2011 01:22:44 +0200 |
parent | 4396:03b59a511671 |
child | 4403:eb688e4397a5 |
comparison
equal
deleted
inserted
replaced
4401:0ed617f58404 | 4402:05f8826972ba |
---|---|
48 rm -f prosodyctl.install | 48 rm -f prosodyctl.install |
49 rm -f prosody.cfg.lua.install | 49 rm -f prosody.cfg.lua.install |
50 rm -f prosody.version | 50 rm -f prosody.version |
51 $(MAKE) clean -C util-src | 51 $(MAKE) clean -C util-src |
52 | 52 |
53 util/encodings.so: | 53 util/%.so: |
54 $(MAKE) install -C util-src | 54 $(MAKE) install -C util-src |
55 | 55 |
56 util/hashes.so: | 56 %.install: % |
57 $(MAKE) install -C util-src | |
58 | |
59 util/pposix.so: | |
60 $(MAKE) install -C util-src | |
61 | |
62 util/signal.so: | |
63 $(MAKE) install -C util-src | |
64 | |
65 prosody.install: prosody | |
66 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 57 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ |
67 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ | 58 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ |
68 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ | 59 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ |
69 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install | 60 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@ |
70 | 61 |
71 prosodyctl.install: prosodyctl | 62 prosody.cfg.lua.install: prosody.cfg.lua.dist |
72 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 63 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' $^ > $@ |
73 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ | |
74 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ | |
75 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosodyctl > prosodyctl.install | |
76 | 64 |
77 prosody.cfg.lua.install: | 65 prosody.version: $(wildcard prosody.release .hg/dirstate) |
78 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' prosody.cfg.lua.dist > prosody.cfg.lua.install | |
79 | |
80 prosody.release: | |
81 test -e .hg/dirstate && hexdump -n6 -e'6/1 "%02x"' .hg/dirstate \ | 66 test -e .hg/dirstate && hexdump -n6 -e'6/1 "%02x"' .hg/dirstate \ |
82 > prosody.version || true | 67 > $@ |
83 | 68 test -f prosody.release && cp prosody.release $@ || true |
84 prosody.version: prosody.release | |
85 cp prosody.release prosody.version || true |