util-src/Makefile: Use variables for install binary and target directory
authorKim Alvefur <zash@zash.se>
Sat, 26 Sep 2015 21:38:09 +0000 (23:38 +0200)
committerKim Alvefur <zash@zash.se>
Sat, 26 Sep 2015 21:38:09 +0000 (23:38 +0200)
util-src/Makefile

index 1f092b1e65925b5b0f66c6175bb20f973c51c952..d99c95158977dcd86077c55ecf7e9b48767c7f6f 100644 (file)
@@ -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)