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 +