Software /
code /
prosody
Comparison
Makefile @ 6883:954a8a8c46d6
Makefile: Simplify generation of prosody.version using magic Make magic
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 27 Sep 2015 00:14:18 +0200 |
parent | 6840:eeefe8d42b8b |
child | 6884:e32275ed5632 |
comparison
equal
deleted
inserted
replaced
6882:e8d887ae659a | 6883:954a8a8c46d6 |
---|---|
63 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@ | 63 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < $^ > $@ |
64 | 64 |
65 prosody.cfg.lua.install: prosody.cfg.lua.dist | 65 prosody.cfg.lua.install: prosody.cfg.lua.dist |
66 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' $^ > $@ | 66 sed 's|certs/|$(INSTALLEDCONFIG)/certs/|' $^ > $@ |
67 | 67 |
68 prosody.version: $(wildcard prosody.release .hg/dirstate) | 68 %.version: %.release |
69 test -f .hg/dirstate && \ | 69 cp $^ $@ |
70 hexdump -n6 -e'6/1 "%02x"' .hg/dirstate > $@ || true | 70 |
71 test -f prosody.release && \ | 71 %.version: .hg/dirstate |
72 cp prosody.release $@ || true | 72 hexdump -n6 -e'6/1 "%02x"' $^ > $@ |
73 | |
74 %.version: | |
75 echo unknown > $@ | |
76 | |
77 |