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