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