From 67906a920a8283cb0d6ff835da5cecbfd822587a Mon Sep 17 00:00:00 2001 From: "L. Bradley LaBoon" Date: Tue, 10 Feb 2015 21:42:23 -0500 Subject: [PATCH] Makefile fix. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1bc866b..5f06346 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -# Install prefix +# Install destination and prefix +DESTDIR ?= PREFIX ?= /usr/local # Build flags @@ -12,7 +13,7 @@ backly: backly.c Makefile gcc $(FLAGS) -o backly backly.c install: backly - install -m 0755 backly $(PREFIX)/bin + install -Dm 0755 backly $(DESTDIR)/$(PREFIX)/bin/backly clean: rm -f backly