autoupdate
[gnulib.git] / modules / byteswap
index dd7d424..52659d2 100644 (file)
@@ -12,15 +12,14 @@ gl_BYTESWAP
 
 Makefile.am:
 BUILT_SOURCES += $(BYTESWAP_H)
-EXTRA_DIST += byteswap_.h
 
 # We need the following in order to create <byteswap.h> when the system
 # doesn't have one.
 byteswap.h: byteswap_.h
-       rm -f $@-t $@
-       cp $(srcdir)/byteswap_.h $@-t
-       chmod a-w $@-t
-       mv $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/byteswap_.h; \
+       } > $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += byteswap.h byteswap.h-t
 
 Include: