summaryrefslogtreecommitdiffstats
path: root/extras/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'extras/systemd')
-rw-r--r--extras/systemd/Makefile.am16
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