summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a761beb..4abd3a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,16 @@
prefix = /usr
-sbindir = $(prefix)/sbin
+exec_prefix = $(prefix)
+sbindir = $(exec_prefix)/sbin
+libexecdir = $(exec_prefix)/lib
systemddir = $(prefix)/lib/systemd/system
confdir = /etc/conf.d
-all: depends.txt
+pkglibexecdir = $(libexecdir)/parabolaweb-utils
+
+CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter
+CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"'
+
+all: depends.txt parabolaweb-changepassword
install: \
$(DESTDIR)$(sbindir)/parabolaweb-changepassword \
@@ -11,6 +18,7 @@ install: \
$(DESTDIR)$(sbindir)/parabolaweb-reporead-inotify \
$(DESTDIR)$(sbindir)/parabolaweb-update \
$(DESTDIR)$(confdir)/parabolaweb \
+ $(DESTDIR)$(pkglibexecdir)/parabolaweb-changepassword.real \
$(DESTDIR)$(systemddir)/parabolaweb.service \
$(DESTDIR)$(systemddir)/parabolaweb-reporead-inotify.service
@@ -26,6 +34,9 @@ $(DESTDIR)$(sbindir)/%: %
$(DESTDIR)$(sbindir)/parabolaweb-changepassword: parabolaweb-changepassword
install -Dm6755 $< $@
+$(DESTDIR)$(pkglibexecdir)/parabolaweb-changepassword.real: parabolaweb-changepassword.sh
+ install -Dm755 $< $@
+
$(DESTDIR)$(systemddir)/%.service: %.service
install -Dm644 $< $@