aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '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