Software /
code /
prosody
Changeset
4396:03b59a511671
Makefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 13 Oct 2011 00:51:50 +0100 |
parents | 4395:d322c4553f97 |
children | 4397:1378e3c79c34 |
files | Makefile util-src/Makefile |
diffstat | 2 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Oct 13 00:24:09 2011 +0500 +++ b/Makefile Thu Oct 13 00:51:50 2011 +0100 @@ -13,6 +13,8 @@ INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules INSTALLEDDATA = $(DATADIR) +.PHONY: all clean install + all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version $(MAKE) -C util-src install
--- a/util-src/Makefile Thu Oct 13 00:24:09 2011 +0500 +++ b/util-src/Makefile Thu Oct 13 00:51:50 2011 +0100 @@ -10,8 +10,19 @@ CXX?=g++ LD?=gcc +.PHONY: all install clean .SUFFIXES: .c .o .so +all: encodings.so hashes.so pposix.so signal.so + +install: encodings.so hashes.so pposix.so signal.so + install *.so ../util/ + +clean: + rm -f *.o + rm -f *.so + rm -f ../util/*.so + encodings.so: encodings.o MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS) @@ -27,12 +38,3 @@ MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(LD) -o $@ $< $(LDFLAGS) -all: encodings.so hashes.so pposix.so signal.so - -install: encodings.so hashes.so pposix.so signal.so - install *.so ../util/ - -clean: - rm -f *.o - rm -f *.so - rm -f ../util/*.so