Software / code / prosody
Annotate
Makefile @ 465:9ab51c483cf3
Rename and update config. Update Makefile for this change.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 29 Nov 2008 02:28:00 +0000 |
| parent | 464:f1827353fd58 |
| child | 467:66f145f5c932 |
| rev | line source |
|---|---|
|
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 include config.unix |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 BIN = $(DESTDIR)$(PREFIX)/bin |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 CONFIG = $(DESTDIR)$(SYSCONFDIR) |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 MODULES = $(DESTDIR)$(PREFIX)/lib/prosody/modules |
| 464 | 7 SOURCE = $(DESTDIR)$(PREFIX)/lib/prosody |
|
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 all: |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 $(MAKE) all -C util-src |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 |
| 464 | 12 install: prosody util/encodings.so util/encodings.so |
| 13 | |
| 14 install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) | |
| 15 install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util | |
|
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 install ./prosody $(BIN) |
| 464 | 17 install -m644 core/* $(SOURCE)/core |
| 18 install -m644 net/* $(SOURCE)/net | |
| 19 install -m644 util/* $(SOURCE)/util | |
|
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
20 install -m644 plugins/* $(MODULES) |
|
465
9ab51c483cf3
Rename and update config. Update Makefile for this change.
Matthew Wild <mwild1@gmail.com>
parents:
464
diff
changeset
|
21 install -m644 prosody.cfg.lua.dist $(CONFIG)/prosody.cfg.lua |
|
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 $(MAKE) install -C util-src |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
23 |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
24 clean: |
|
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
25 $(MAKE) clean -C util-src |
| 464 | 26 |
| 27 util/encodings.so: | |
| 28 $(MAKE) install -C util-src | |
| 29 | |
| 30 util/hashes.so: | |
| 31 $(MAKE) install -C util-src |