Mark generated files as "DO NOT EDIT".
[pspp] / modules / alloca-opt
index dd2959df5f131ce7b3fcd446143479c16d1a003d..895741bbe1aace8b37a92872efac8c43191b0614 100644 (file)
@@ -19,10 +19,10 @@ EXTRA_DIST += alloca_.h
 # We need the following in order to create <alloca.h> when the system
 # doesn't have one that works with the given compiler.
 alloca.h: alloca_.h
-       rm -f $@-t $@
-       cp $(srcdir)/alloca_.h $@-t
-       chmod a-x $@-t
-       mv $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/alloca_.h; \
+       } > $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += alloca.h alloca.h-t
 
 Include: