From a40b6b5bb7e6cf04a7dbbc7806cb57da310c9d41 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 1 Jan 2015 14:23:18 +0100 Subject: [PATCH 1/1] Makefile: delete generated file on error --- Makefile.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2