tinc/systemd/Makefile.am

19 lines
496 B
Makefile
Raw Permalink Normal View History

2019-08-26 11:44:48 +00:00
EXTRA_DIST = tinc.service.in tinc@.service.in
CLEANFILES = tinc.service tinc@.service
if WITH_SYSTEMD
systemddir = @systemd_path@
nodist_systemd_DATA = tinc.service tinc@.service
endif
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 > $@