diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -27,11 +27,12 @@ CACHEDIR = /var/cache MANDIR = /usr/share/man LOGWATCHDIR = /usr/share/logwatch TMPDIR = /tmp +SYSTEMDDIR = /usr/share/systemd/system WAITDIR = /home/shutdown/.warteauf VERSION = 0.8.2 -all: doalogwatch doalogwatch.cron +all: doalogwatch doalogwatch.cron doalogwatch.service %: %.in sed "s/#VERSION#/$(VERSION)/; \ @@ -43,11 +44,12 @@ all: doalogwatch doalogwatch.cron s@#TMPDIR#@$(TMPDIR)@" \ $< > $@ -.PHONY: install dist clean +.PHONY: all install dist clean install: all install -D -m0755 -t $(DESTDIR)$(BINDIR) doalogwatch install -D -m0755 doalogwatch.cron $(DESTDIR)$(CRONDIR)/doalogwatch + install -D -m0655 -t $(DESTDIR)$(SYSTEMDDIR) doalogwatch.service doalogwatch.timer install -d $(DESTDIR)$(CACHEDIR)/logwatch install -D -m0644 -t $(DESTDIR)$(LOGWATCHDIR)/default.conf/services dummy.conf install -D -m0644 -t $(DESTDIR)$(LOGWATCHDIR)/scripts/services dummy |