Fix two small memory leaks.
[oweals/tinc.git] / systemd / Makefile.am
1 EXTRA_DIST = tinc.service.in tinc@.service.in
2
3 CLEANFILES = tinc.service tinc@.service
4
5 if WITH_SYSTEMD
6 systemddir = @systemd_path@
7 nodist_systemd_DATA = tinc.service tinc@.service
8 endif
9
10 substitute = sed \
11         -e s,'@sbindir\@',"$(sbindir)",g \
12         -e s,'@sysconfdir\@',"$(sysconfdir)",g
13
14 tinc.service: $(srcdir)/tinc.service.in
15         $(AM_V_GEN)$(substitute) $(srcdir)/tinc.service.in > $@
16
17 tinc@.service: $(srcdir)/tinc@.service.in
18         $(AM_V_GEN)$(substitute) $(srcdir)/tinc@.service.in > $@