Comparison

Makefile @ 6810:533fd843d91f

configure, Makefile: Make compatible with plain Bourne shell as used on Solaris. Fixes #418 (thanks jcea)
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Sep 2015 18:54:34 +0100
parent 6576:b7796a46aec2
child 6840:eeefe8d42b8b
comparison
equal deleted inserted replaced
6809:dd6b21862e3b 6810:533fd843d91f
39 install -d $(SOURCE)/util/sasl 39 install -d $(SOURCE)/util/sasl
40 install -m644 util/sasl/* $(SOURCE)/util/sasl 40 install -m644 util/sasl/* $(SOURCE)/util/sasl
41 umask 0022 && cp -r plugins/* $(MODULES) 41 umask 0022 && cp -r plugins/* $(MODULES)
42 install -m644 certs/* $(CONFIG)/certs 42 install -m644 certs/* $(CONFIG)/certs
43 install -m644 man/prosodyctl.man $(MAN)/man1/prosodyctl.1 43 install -m644 man/prosodyctl.man $(MAN)/man1/prosodyctl.1
44 test -e $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua 44 test -f $(CONFIG)/prosody.cfg.lua || install -m644 prosody.cfg.lua.install $(CONFIG)/prosody.cfg.lua
45 test -e prosody.version && install -m644 prosody.version $(SOURCE)/prosody.version || true 45 test -f prosody.version && install -m644 prosody.version $(SOURCE)/prosody.version || true
46 $(MAKE) install -C util-src 46 $(MAKE) install -C util-src
47 47
48 clean: 48 clean:
49 rm -f prosody.install 49 rm -f prosody.install
50 rm -f prosodyctl.install 50 rm -f prosodyctl.install
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 prosody.version: $(wildcard prosody.release .hg/dirstate)
69 test -e .hg/dirstate && \ 69 test -d .hg/dirstate && \
70 hexdump -n6 -e'6/1 "%02x"' .hg/dirstate > $@ || true 70 hexdump -n6 -e'6/1 "%02x"' .hg/dirstate > $@ || true
71 test -f prosody.release && \ 71 test -f prosody.release && \
72 cp prosody.release $@ || true 72 cp prosody.release $@ || true