Fix vmod_get_h invocation: Do not leave empty files when it fails

parent 50be1af8
......@@ -22,9 +22,11 @@ TESTS = \
if CHKSUM
import_vmod_blob.h: vmod_get_h $(VMOD_BLOB)
$(builddir)/vmod_get_h blob $(VMOD_BLOB) >$@
$(builddir)/vmod_get_h blob $(VMOD_BLOB) >$@.tmp
mv -f $@.tmp $@
import_vmod_blobdigest.h: vmod_get_h $(VMOD_BLOBDIGEST)
$(builddir)/vmod_get_h blobdigest $(VMOD_BLOBDIGEST) >$@
$(builddir)/vmod_get_h blobdigest $(VMOD_BLOBDIGEST) >$@.tmp
mv -f $@.tmp $@
libvmod_tus_la_SOURCES = tus_blob.c
tus_blob.c: import_vmod_blob.h import_vmod_blobdigest.h
TESTS += \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment