Mark generated files as "DO NOT EDIT".
[pspp] / modules / getopt
index ee754bc12f82bacbec4aa09bf666616b346ffddc..bf1da551218df7a6baf11245e744372224b2fad1 100644 (file)
@@ -22,7 +22,9 @@ EXTRA_DIST += getopt_.h getopt_int.h
 # We need the following in order to create <getopt.h> when the system
 # doesn't have one that works with the given compiler.
 getopt.h: getopt_.h
-       cp -f $(srcdir)/getopt_.h $@-t
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/getopt_.h; \
+       } > $@-t
        mv -f $@-t $@
 MOSTLYCLEANFILES += getopt.h getopt.h-t