New modules 'unistr/u8-strmblen', 'unistr/u16-strmblen', 'unistr/u32-strmblen'.
[gnulib.git] / modules / alloca-opt
index dd2959d..d6318c9 100644 (file)
@@ -14,15 +14,14 @@ gl_FUNC_ALLOCA
 
 Makefile.am:
 BUILT_SOURCES += $(ALLOCA_H)
-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: