aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eb0c29a..e0b317d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ pkgdatadir = $(datadir)/sitesummary
pkgdir = $(libdir)/sitesummary
collectordir = $(libdir)/sitesummary/collect.d
perldir = $(datadir)/perl5
+pkgvardir = /var/lib/sitesummary
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644
@@ -37,8 +38,9 @@ install-server:
$(INSTALL) -d $(DESTDIR)/etc/apache2/sites-available/
$(INSTALL_DATA) apache.conf $(DESTDIR)/etc/apache2/sites-available/sitesummary
- $(INSTALL) -o www-data -d $(DESTDIR)/var/lib/sitesummary/entries
- $(INSTALL) -o www-data -d $(DESTDIR)/var/lib/sitesummary/tmpstorage
+ $(INSTALL) -o www-data -d $(DESTDIR)$(pkgvardir)/entries
+ $(INSTALL) -o www-data -d $(DESTDIR)$(pkgvardir)/tmpstorage
+ $(INSTALL) -d $(DESTDIR)$(pkgvardir)/www
install-client:
$(INSTALL) -d $(DESTDIR)$(sbindir)