Comparison

Makefile @ 586:b828d7d47973

Add posix support library, and adjust makefiles for it
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Dec 2008 23:20:59 +0000
parent 514:03d7da01843e
child 987:d55ec60331e7
comparison
equal deleted inserted replaced
585:033817e12ddb 586:b828d7d47973
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 util/encodings.so util/hashes.so 15 all: prosody.install prosody.cfg.lua.install
16 $(MAKE) -C util-src install
16 17
17 install: prosody.install prosody.cfg.lua.install util/encodings.so util/encodings.so 18 install: prosody.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so
18 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) 19 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA)
19 install -d $(CONFIG)/certs 20 install -d $(CONFIG)/certs
20 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util 21 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util
21 install ./prosody.install $(BIN)/prosody 22 install ./prosody.install $(BIN)/prosody
22 install -m644 core/* $(SOURCE)/core 23 install -m644 core/* $(SOURCE)/core
37 $(MAKE) install -C util-src 38 $(MAKE) install -C util-src
38 39
39 util/hashes.so: 40 util/hashes.so:
40 $(MAKE) install -C util-src 41 $(MAKE) install -C util-src
41 42
43 util/pposix.so:
44 $(MAKE) install -C util-src
45
42 prosody.install: prosody 46 prosody.install: prosody
43 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ 47 sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
44 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \ 48 s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
45 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \ 49 s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \
46 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install 50 s|^CFG_PLUGINDIR=.*;$$|CFG_PLUGINDIR='$(INSTALLEDMODULES)/';|;" < prosody > prosody.install