striconveh: Simplify last commit.
[gnulib.git] / modules / byteswap
index 320e8a4..6a3ce15 100644 (file)
@@ -16,9 +16,10 @@ BUILT_SOURCES += $(BYTESWAP_H)
 # We need the following in order to create <byteswap.h> when the system
 # doesn't have one.
 byteswap.h: byteswap.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/byteswap.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv -f $@-t $@
 MOSTLYCLEANFILES += byteswap.h byteswap.h-t