summaryrefslogtreecommitdiffstats
path: root/extras/systemd/Makefile.am
blob: 82fa1aac690ec463743846db89c61c1c62318fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CLEANFILES = glustereventsd.service
EXTRA_DIST = glustereventsd.service.in

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 [ @EVENTS_ENABLED@ = 1 ] && [ -d $(SYSTEMD_DIR) ]; then \
		$(mkdir_p) $(DESTDIR)$(SYSTEMD_DIR); \
		$(INSTALL_PROGRAM) glustereventsd.service $(DESTDIR)$(SYSTEMD_DIR)/; \
	fi