Skip to contentSkip to conversation

systemd: remove generated service files on clean

PATCH In review Frank Lichtenheld 2 participants 2 messages Jul 26, 2022 – Jul 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 distro/systemd/Makefile.am | 1 +
 1 file changed, 1 insertion(+)
distro/systemd/Makefile.am +1 -0
index 322bd535..d35c137d 100644
@@ -21,6 +21,7 @@ if ENABLE_SYSTEMD
 systemdunit_DATA = \
 	[email protected]... \
 	[email protected]...
+CLEANFILES = $(systemdunit_DATA)
 tmpfiles_DATA = \
 	tmpfiles-openvpn.conf
 dist_doc_DATA = \
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw

Can't pass the chance to apply something that says "remove systemd" while David is not looking...

Joke aside, this seems to be a straightforward "make sure generated stuff is cleaned on 'make clean'" thing :-) - I have not tested it in earnest, though, as none of my primary Linuxes have systemd.

Your patch has been applied to the master branch.

commit 3fb5665ec5b70b665c0a8094de20042be0e392de

Author: Frank Lichtenheld
Date:   Tue Jul 26 10:33:13 2022 +0200
     systemd: remove generated service files on clean

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg24740.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering