Makefile
changeset 8 3af8e802b93c
parent 5 0f5276b4ee4b
child 20 9b1e3028ffeb
--- a/Makefile	Mon Sep 08 13:02:50 2014 +0200
+++ b/Makefile	Mon Sep 08 13:20:25 2014 +0200
@@ -19,12 +19,12 @@
 	install -m 0644 $(NAME).cron $(DESTDIR)$(crondir)/$(NAME)
 
 clean:
-	-rm -f $(NAME)
+	-rm -f $(NAME) $(NAME).cron
 
 .sh:
 	@$(SH) -n $<
 	@cp $< $@
 	@chmod a=rx $@
 
-.cron:
-	sed 's|#sbindir#|$(sbindir)|' $<.template >$@
+$(NAME).cron: $(NAME).cron.template
+	sed 's|#sbindir#|$(sbindir)|' $< >$@