Ensure to rebuild generated .h files when config.status has changed.
[pspp] / modules / strings
index e5ef663942f3427e728c7fc57726e9fd73a503fa..6019f5dc9d5d67a90b53f08990ef3f73a5ce9ba6 100644 (file)
@@ -14,13 +14,11 @@ configure.ac:
 gl_HEADER_STRINGS_H
 
 Makefile.am:
-nodist_pkginclude_HEADERS += strings.h
-
 BUILT_SOURCES += strings.h
 
 # We need the following in order to create <strings.h> when the system
 # doesn't have one that works with the given compiler.
-strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
+strings.h: strings.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \