diff options
Diffstat (limited to 'extras/systemd/Makefile.am')
-rw-r--r-- | extras/systemd/Makefile.am | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/extras/systemd/Makefile.am b/extras/systemd/Makefile.am index 1fbb74593bb..3f0ec89537a 100644 --- a/extras/systemd/Makefile.am +++ b/extras/systemd/Makefile.am @@ -1,11 +1,7 @@ +CLEANFILES = glusterd.service +EXTRA_DIST = glusterd.service.in -CLEANFILES = - -SYSTEMD_DIR = @systemddir@ - -install-exec-local: - @if [ -d $(SYSTEMD_DIR) ]; then \ - $(MKDIR_P) $(DESTDIR)$(SYSTEMD_DIR); \ - $(INSTALL_PROGRAM) glusterd.service $(DESTDIR)$(SYSTEMD_DIR)/; \ - fi - +if USE_SYSTEMD +# systemddir is already defined through configure.ac +systemd_DATA = glusterd.service +endif |