aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-20 17:01:03 +0300
committerGravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-20 17:01:03 +0300
commit2497c79cb58c2952bdf53aa629ae64cddacb20f3 (patch)
tree78e0cdde91368a666b7a201c29d9e35ad10e441b
parentf398fe4d5dceb00c345c2bfff03491a27fe21e67 (diff)
Updated makefile
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2323030..1d872e4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
all: brightnessctl
VERSION=0.1.1
-DESTDIR=/usr/local
+DESTDIR ?= /usr/local
CFLAGS=-ggdb -Wall -Wextra -DVERSION=\"${VERSION}\" -D_GNU_SOURCE
install: brightnessctl
- install -m 4711 brightnessctl ${DESTDIR}/bin
+ install -d ${DESTDIR}/bin
+ install -m 4711 brightnessctl ${DESTDIR}/bin/
clean:
rm -f brightnessctl