From: Ralf Jung Date: Thu, 1 Jan 2015 13:23:18 +0000 (+0100) Subject: Makefile: delete generated file on error X-Git-Url: https://git.ralfj.de/zonemaker.git/commitdiff_plain/a40b6b5bb7e6cf04a7dbbc7806cb57da310c9d41?ds=inline;hp=cb274ac18d094a7f862335464b29d8816f26eeef Makefile: delete generated file on error --- diff --git a/Makefile.sample b/Makefile.sample index 074133d..c2d05c7 100644 --- a/Makefile.sample +++ b/Makefile.sample @@ -1,3 +1,4 @@ db.example.com: db.example.com.py - @sudo -u user ~user/zonemaker/zone-maker $< | tee $@ + @sudo -u user ~user/zonemaker/zone-maker $< > $@ || rm -f $@ + @cat $@ @rndc reload example.com