gnulib-tool now synthesizes the EXTRA_DIST line.
[gnulib.git] / modules / stdbool
index e3e06ab..b8da551 100644 (file)
@@ -13,12 +13,14 @@ AM_STDBOOL_H
 
 Makefile.am:
 BUILT_SOURCES += $(STDBOOL_H)
-EXTRA_DIST += stdbool_.h
 
 # We need the following in order to create <stdbool.h> when the system
 # doesn't have one that works.
 stdbool.h: stdbool_.h
-       sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
+       rm -f $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h; \
+       } > $@-t
        mv $@-t $@
 MOSTLYCLEANFILES += stdbool.h stdbool.h-t