annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
[pspp] / modules / getopt-posix
index b36ed1e33bdfbde20f1d272ee247aababac6c025..b9d26583094f3f8823a25b59a02b94b1356754c5 100644 (file)
@@ -22,9 +22,10 @@ BUILT_SOURCES += $(GETOPT_H)
 # We need the following in order to create <getopt.h> when the system
 # doesn't have one that works with the given compiler.
 getopt.h: getopt.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/getopt.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv -f $@-t $@
 MOSTLYCLEANFILES += getopt.h getopt.h-t