From bbc8698ef741abb221ebe3602d881f58e3c871cd Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Tue, 18 Jul 2023 16:53:25 +0200 Subject: [PATCH] implement target "clean" --- Makefile | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index efffcd3..09a2165 100644 --- a/Makefile +++ b/Makefile @@ -10,17 +10,9 @@ all: \ res/desktop/$(NAME).desktop \ res/polkit/org.freedesktop.policykit.$(NAME).policy -res/desktop/$(NAME).desktop: \ - res/desktop/$(NAME).desktop.in - sed -e 's|{BINDIR}|$(BINDIR)|' \ - < res/desktop/$(NAME).desktop.in \ - > res/desktop/$(NAME).desktop - -res/polkit/org.freedesktop.policykit.$(NAME).policy: \ - res/polkit/org.freedesktop.policykit.$(NAME).policy.in - sed -e 's|{BINDIR}|$(BINDIR)|' \ - < res/polkit/org.freedesktop.policykit.$(NAME).policy.in \ - > res/polkit/org.freedesktop.policykit.$(NAME).policy +clean: + rm -f res/desktop/$(NAME).desktop + rm -f res/polkit/org.freedesktop.policykit.$(NAME).policy install: \ bin/$(NAME) \ @@ -39,3 +31,16 @@ install: \ install -m 644 \ res/desktop/$(NAME).desktop \ $(DESTDIR)$(APPDIR)/$(NAME).desktop + +res/desktop/$(NAME).desktop: \ + res/desktop/$(NAME).desktop.in + sed -e 's|{BINDIR}|$(BINDIR)|' \ + < res/desktop/$(NAME).desktop.in \ + > res/desktop/$(NAME).desktop + +res/polkit/org.freedesktop.policykit.$(NAME).policy: \ + res/polkit/org.freedesktop.policykit.$(NAME).policy.in + sed -e 's|{BINDIR}|$(BINDIR)|' \ + < res/polkit/org.freedesktop.policykit.$(NAME).policy.in \ + > res/polkit/org.freedesktop.policykit.$(NAME).policy +