diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 $< $@ |