implement target "clean"

This commit is contained in:
Tilman Kranz 2023-07-18 16:53:25 +02:00
parent 970cf9233b
commit bbc8698ef7

View File

@ -10,17 +10,9 @@ all: \
res/desktop/$(NAME).desktop \ res/desktop/$(NAME).desktop \
res/polkit/org.freedesktop.policykit.$(NAME).policy res/polkit/org.freedesktop.policykit.$(NAME).policy
res/desktop/$(NAME).desktop: \ clean:
res/desktop/$(NAME).desktop.in rm -f res/desktop/$(NAME).desktop
sed -e 's|{BINDIR}|$(BINDIR)|' \ rm -f res/polkit/org.freedesktop.policykit.$(NAME).policy
< 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
install: \ install: \
bin/$(NAME) \ bin/$(NAME) \
@ -39,3 +31,16 @@ install: \
install -m 644 \ install -m 644 \
res/desktop/$(NAME).desktop \ res/desktop/$(NAME).desktop \
$(DESTDIR)$(APPDIR)/$(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