fixed make file rule for crontab
authorMatthias Förste <foerste@schlittermann.de>
Mon, 08 Sep 2014 13:20:25 +0200
changeset 8 3af8e802b93c
parent 7 c61a3914a462
child 9 a345a23e9cdd
fixed make file rule for crontab
Makefile
--- 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)|' $< >$@