diff options
Diffstat (limited to 'extras/systemd/Makefile.am')
-rw-r--r-- | extras/systemd/Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extras/systemd/Makefile.am b/extras/systemd/Makefile.am index 3fc656b8262..82fa1aac690 100644 --- a/extras/systemd/Makefile.am +++ b/extras/systemd/Makefile.am @@ -1,5 +1,5 @@ - -CLEANFILES = +CLEANFILES = glustereventsd.service +EXTRA_DIST = glustereventsd.service.in SYSTEMD_DIR = @systemddir@ @@ -8,4 +8,7 @@ install-exec-local: $(mkdir_p) $(DESTDIR)$(SYSTEMD_DIR); \ $(INSTALL_PROGRAM) glusterd.service $(DESTDIR)$(SYSTEMD_DIR)/; \ fi - + @if [ @EVENTS_ENABLED@ = 1 ] && [ -d $(SYSTEMD_DIR) ]; then \ + $(mkdir_p) $(DESTDIR)$(SYSTEMD_DIR); \ + $(INSTALL_PROGRAM) glustereventsd.service $(DESTDIR)$(SYSTEMD_DIR)/; \ + fi |