consistently remove $@-t before redirecting to it
[gnulib.git] / modules / fnmatch
index 441d5d3..64d3cd9 100644 (file)
@@ -28,6 +28,7 @@ BUILT_SOURCES += $(FNMATCH_H)
 # We need the following in order to create <fnmatch.h> when the system
 # doesn't have one that supports the required API.
 fnmatch.h: fnmatch.in.h
+       rm -f $@-t $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/fnmatch.in.h; \
        } > $@-t