From: Kim Alvefur Date: Sat, 26 Sep 2015 21:38:09 +0000 (+0200) Subject: util-src/Makefile: Use variables for install binary and target directory X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=2ad82adc468b8ccbdbdc564a76943fc1fb2a1527;p=prosody.git util-src/Makefile: Use variables for install binary and target directory --- diff --git a/util-src/Makefile b/util-src/Makefile index 1f092b1e..d99c9515 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -11,6 +11,9 @@ CXX?=g++ LD?=gcc CFLAGS+=-ggdb +INSTALL_DATA=install -m644 +TARGET?=../util/ + ALL=encodings.so hashes.so net.so pposix.so signal.so table.so .PHONY: all install clean @@ -19,7 +22,7 @@ ALL=encodings.so hashes.so net.so pposix.so signal.so table.so all: $(ALL) install: $(ALL) - install $^ ../util/ + $(INSTALL_DATA) $^ $(TARGET) clean: rm -f $(ALL)