Ensure to rebuild generated .h files when config.status has changed.
[gnulib.git] / modules / sysexits
index 191ba60..616ddb9 100644 (file)
@@ -12,14 +12,11 @@ configure.ac:
 gl_SYSEXITS
 
 Makefile.am:
-nodist_pkginclude_HEADERS += $(SYSEXITS_H)
-EXTRA_HEADERS += sysexits.h
-
 BUILT_SOURCES += $(SYSEXITS_H)
 
 # We need the following in order to create <sysexits.h> when the system
 # doesn't have one that works with the given compiler.
-sysexits.h: sysexits.in.h
+sysexits.h: sysexits.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \