Whamcloud - gitweb
cfda573993376f01ed85d40867174d41177ad89d
[fs/lustre-release.git] / lustre / scripts / systemd / Makefile.am
1 # These are scripts that are generated from .in files
2 genunitfiles = lnet.service
3
4 if HAVE_SYSTEMD
5 systemdsystemunit_DATA = lnet.service
6 endif
7
8 EXTRA_DIST = $(addsuffix .in,$(genunitfiles))
9
10 CLEANFILES = $(genunitfiles)
11
12 $(genunitfiles): %: %.in
13 if BUILD_DLC
14         sed -e 's,@sbindir\@,$(sbindir),g' \
15             -e 's,@sysconfdir\@,$(sysconfdir),g' \
16             -e 's,@BUILD_DLC_TRUE\@,,g' \
17             -e 's,@BUILD_DLC_FALSE\@,\#,g' $< > $@
18 else
19         sed -e 's,@sbindir\@,$(sbindir),g' \
20             -e 's,@sysconfdir\@,$(sysconfdir),g' \
21             -e 's,@BUILD_DLC_TRUE\@,\#,g' \
22             -e 's,@BUILD_DLC_FALSE\@,,g' $< > $@
23 endif