Software /
code /
prosody
Comparison
Makefile @ 503:00702b66beb1
Makefile fix for creating datadir in correct place on install
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 30 Nov 2008 14:30:22 +0000 |
parent | 502:21dc299387a6 |
child | 512:eb50ee09c2bb |
comparison
equal
deleted
inserted
replaced
502:21dc299387a6 | 503:00702b66beb1 |
---|---|
3 | 3 |
4 BIN = $(DESTDIR)$(PREFIX)/bin | 4 BIN = $(DESTDIR)$(PREFIX)/bin |
5 CONFIG = $(DESTDIR)$(SYSCONFDIR) | 5 CONFIG = $(DESTDIR)$(SYSCONFDIR) |
6 MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules | 6 MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules |
7 SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody | 7 SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody |
8 | 8 DATA = $(DESTDIR)$(DATADIR) |
9 DATADIR?=data | |
10 | 9 |
11 INSTALLEDSOURCE = $(PREFIX)/lib/prosody | 10 INSTALLEDSOURCE = $(PREFIX)/lib/prosody |
12 INSTALLEDCONFIG = $(SYSCONFDIR) | 11 INSTALLEDCONFIG = $(SYSCONFDIR) |
13 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules | 12 INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules |
14 INSTALLEDDATA = $(DATADIR) | 13 INSTALLEDDATA = $(DATADIR) |
15 | 14 |
16 all: prosody.install prosody.cfg.lua.install | 15 all: prosody.install prosody.cfg.lua.install |
17 $(MAKE) all -C util-src | 16 $(MAKE) all -C util-src |
18 | 17 |
19 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 |
20 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATADIR) | 19 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) |
21 install -d $(CONFIG)/certs | 20 install -d $(CONFIG)/certs |
22 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util | 21 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util |
23 install ./prosody.install $(BIN)/prosody | 22 install ./prosody.install $(BIN)/prosody |
24 install -m644 core/* $(SOURCE)/core | 23 install -m644 core/* $(SOURCE)/core |
25 install -m644 net/* $(SOURCE)/net | 24 install -m644 net/* $(SOURCE)/net |