aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Mykyta Holubakha <hilobakho@gmail.com>2020-02-02 13:58:53 +0100
committerGravatar Mykyta Holubakha <hilobakho@gmail.com>2020-02-02 13:58:53 +0100
commit052e56ccd662fba25abd7780be5feb66a8e0710b (patch)
treea680e6f246014def3fbde7a686dca7b76881150f /Makefile
parent7504b58765cafae7f7628fe02204883a200a4b10 (diff)
Build fixup
systemd install fixup Closes #42, #44
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fcd746a..c895ee7 100644
--- a/Makefile
+++ b/Makefile
@@ -11,17 +11,18 @@ INSTALL_UDEV_RULES = 1
INSTALL_UDEV_1 = install_udev_rules
UDEVDIR ?= /lib/udev/rules.d
-MODE_0 = 4711
-MODE_1 = 0755
-MODE = ${MODE_${INSTALL_UDEV_RULES}}
-
ifdef ENABLE_SYSTEMD
CFLAGS += ${shell pkg-config --cflags libsystemd}
LDLIBS += ${shell pkg-config --libs libsystemd}
CPPFLAGS += -DENABLE_SYSTEMD
- MODE = 0755
+ INSTALL_UDEV_RULES=0
endif
+MODE_0 = 4711
+MODE_1 = 0755
+MODE = ${MODE_${INSTALL_UDEV_RULES}}
+
+
all: brightnessctl brightnessctl.1
install: all ${INSTALL_UDEV_${INSTALL_UDEV_RULES}}