# HG changeset patch # User Kim Alvefur # Date 1443303489 -7200 # Node ID 020ededc84a67d6cdddd5b0347554c2c6dcb0346 # Parent d1fc95d22f33120ec4353aabcf970f47621fc003 util-src/Makefile: Use variables for install binary and target directory diff -r d1fc95d22f33 -r 020ededc84a6 util-src/Makefile --- a/util-src/Makefile Sat Sep 26 23:29:50 2015 +0200 +++ b/util-src/Makefile Sat Sep 26 23:38:09 2015 +0200 @@ -11,6 +11,9 @@ 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: $(ALL) install: $(ALL) - install $^ ../util/ + $(INSTALL_DATA) $^ $(TARGET) clean: rm -f $(ALL)