Remove leftover generated .h files after config.status changed.
[pspp] / modules / stddef
index 23a6fb56af2a355ed516556e7440d18a1c572f2d..94b57da9b0ba3bafaa1442a6ff2903c78261d12d 100644 (file)
@@ -17,6 +17,7 @@ BUILT_SOURCES += $(STDDEF_H)
 
 # We need the following in order to create <stddef.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_STDDEF_H
 stddef.h: stddef.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -29,6 +30,10 @@ stddef.h: stddef.in.h $(top_builddir)/config.status
              < $(srcdir)/stddef.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+stddef.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += stddef.h stddef.h-t
 
 Include: