Ensure to rebuild generated .h files when config.status has changed.
[gnulib.git] / modules / dirent
index 094a84e..94f53a9 100644 (file)
@@ -16,13 +16,11 @@ configure.ac:
 gl_DIRENT_H
 
 Makefile.am:
-nodist_pkginclude_HEADERS += dirent.h
-
 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 $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \