summaryrefslogtreecommitdiffstats
path: root/systemd/Makefile.am
blob: 798b4a8cf6d27b2309b4315ef9970604e3c5f88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DISTCLEANFILES = Makefile.in gluster-blockd.service gluster-block-target.service \
                 gluster-blockd.initd

CLEANFILES = *~ gluster-blockd.service gluster-block-target.service \
             gluster-blockd.initd

EXTRA_DIST = gluster-blockd.service.in gluster-block-target.service.in \
             gluster-blockd.initd.in gluster-blockd.sysconfig

if USE_SYSTEMD
# systemddir is already defined through configure.ac
systemd_DATA = gluster-blockd.service gluster-block-target.service
else
# initddir is already defined through configure.ac
initd_DATA = gluster-blockd.initd
endif

install-data-local:
	$(MKDIR_P) $(DESTDIR)${sysconfigdir};              \
	$(INSTALL_DATA) gluster-blockd.sysconfig           \
		$(DESTDIR)${sysconfigdir}/gluster-blockd;

uninstall-local:
	rm -f $(DESTDIR)${sysconfigdir}/gluster-blockd