annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
[pspp] / modules / dirent
index ca784f844aa9fc7f4f67732fab6c9bf02fa14f6d..8df7c354aae4a536cd2aceeb64abc1f3eed9c493 100644 (file)
@@ -19,7 +19,7 @@ BUILT_SOURCES += $(DIRENT_H)
 # We need the following in order to create <dirent.h> when the system
 # doesn't have one that works with the given compiler.
 dirent.h: dirent.in.h
-       rm -f $@-t $@
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
@@ -33,7 +33,7 @@ dirent.h: dirent.in.h
              -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
              < $(srcdir)/dirent.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv $@-t $@
 MOSTLYCLEANFILES += dirent.h dirent.h-t