summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c4bea3b..fe07ceb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,17 @@
PACKAGE = parabolaweb-utils
-VERSION = 20170204
+VERSION = 20170205
-#prefix = /usr/local
+# override gnuconf defaults
prefix = /usr
-#sbindir = $(exec_prefix)/sbin
sbindir = $(bindir)
-#libexecdir = $(exec_prefix)/libexec
libexecdir = $(exec_prefix)/lib
-#sysconfdir = $(prefix)/etc
sysconfdir = /etc/conf.d
-#uwsgidir = $(prefix)/etc/uwsgi
-uwsgidir = /etc/uwsgi
+# non-standard directories
+systemddir = $(prefix)/lib/systemd/system
+uwsgidir = /etc/uwsgi
pkglibexecdir = $(libexecdir)/parabolaweb-utils
-pkgconffile = $(sysconfdir)/parabolaweb
+pkgconffile = $(sysconfdir)/parabolaweb
CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter
CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"'
@@ -30,6 +28,7 @@ targets = \
$(pkglibexecdir)/parabolaweb-changepassword.real \
$(systemddir)/parabolaweb-reporead-inotify.service \
$(systemddir)/parabolaweb-reporead-rsync.service \
+ $(systemddir)/parabolaweb-reporead-rsync.timer \
$(uwsgidir)/parabolaweb.ini
files.out.all = depends.txt $(filter-out $(files.src.src),$(notdir $(targets))) parabolaweb.conf
@@ -49,6 +48,9 @@ $(DESTDIR)$(pkglibexecdir)/%: %
$(DESTDIR)$(systemddir)/%.service: %.service
install -Dm644 $< $@
+$(DESTDIR)$(systemddir)/%.timer: %.timer
+ install -Dm644 $< $@
+
$(DESTDIR)$(uwsgidir)/%: %
install -Dm644 $< $@