0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
openvpn/distro/systemd/Makefile.am
Frank Lichtenheld 3fb5665ec5 systemd: remove generated service files on clean
Found this when trying to build the Debian package
twice in a row. Which failed since then there were
additional files.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220726083313.14067-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24740.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
2022-07-27 20:19:51 +02:00

36 lines
919 B
Makefile

#
# OpenVPN -- An application to securely tunnel IP networks
# over a single UDP port, with support for SSL/TLS-based
# session authentication and key exchange,
# packet encryption, packet authentication, and
# packet compression.
#
# Copyright (C) 2017-2022 OpenVPN Inc <sales@openvpn.net>
#
%.service: %.service.in Makefile
$(AM_V_GEN)sed -e 's|\@sbindir\@|$(sbindir)|' \
$< > $@.tmp && mv $@.tmp $@
EXTRA_DIST = \
tmpfiles-openvpn.conf \
openvpn-client@.service.in \
openvpn-server@.service.in
if ENABLE_SYSTEMD
systemdunit_DATA = \
openvpn-client@.service \
openvpn-server@.service
CLEANFILES = $(systemdunit_DATA)
tmpfiles_DATA = \
tmpfiles-openvpn.conf
dist_doc_DATA = \
README.systemd
install-data-hook:
mv $(DESTDIR)$(tmpfilesdir)/tmpfiles-openvpn.conf $(DESTDIR)$(tmpfilesdir)/openvpn.conf
endif
MAINTAINERCLEANFILES = \
$(srcdir)/Makefile.in