Mark generated files as "DO NOT EDIT".
[pspp] / modules / byteswap
index 5ff0618b1635236342ed7ef73a2bb4a77052ab7d..d76542d7775d6d8c9da086617d8c0286e06337e2 100644 (file)
@@ -17,8 +17,10 @@ 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
-       cp $(srcdir)/byteswap_.h $@-t
-       mv $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/byteswap_.h; \
+       } > $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += byteswap.h byteswap.h-t
 
 Include: