Mark generated files as "DO NOT EDIT".
[pspp] / modules / sys_stat
index c1b476595af1d8e12e7c268578ec6f1c259263cb..4a50c13401b4969b07d2db3e688f46a62252e4fc 100644 (file)
@@ -3,7 +3,7 @@ A <sys/stat.h> for systems with missing declarations.
 
 Files:
 lib/stat_.h
-m4/full-header-path.m4
+m4/absolute-header.m4
 m4/sys_stat_h.m4
 
 Depends-on:
@@ -19,8 +19,11 @@ EXTRA_DIST += stat_.h
 # has one that is incomplete.
 sys/stat.h: stat_.h
        test -d sys || mkdir sys
-       sed -e 's|@''FULL_PATH_SYS_STAT_H''@|$(FULL_PATH_SYS_STAT_H)|g' \
-           < $(srcdir)/stat_.h > $@-t
+       rm -f $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \
+             < $(srcdir)/stat_.h; \
+       } > $@-t
        mv $@-t $@
 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
 MOSTLYCLEANDIRS += sys