tinc/systemd/Makefile.am

19 lines
496 B
Makefile
Raw Normal View History

2019-08-26 11:44:53 +00:00
EXTRA_DIST = tinc.service.in tinc@.service.in
CLEANFILES = tinc.service tinc@.service
2019-08-26 11:44:52 +00:00
if WITH_SYSTEMD
systemddir = @systemd_path@
2019-08-26 11:44:53 +00:00
nodist_systemd_DATA = tinc.service tinc@.service
2019-08-26 11:44:52 +00:00
endif
2019-08-26 11:44:53 +00:00
substitute = sed \
-e s,'@sbindir\@',"$(sbindir)",g \
-e s,'@sysconfdir\@',"$(sysconfdir)",g
tinc.service: $(srcdir)/tinc.service.in
$(AM_V_GEN)$(substitute) $(srcdir)/tinc.service.in > $@
tinc@.service: $(srcdir)/tinc@.service.in
$(AM_V_GEN)$(substitute) $(srcdir)/tinc@.service.in > $@