changeset 2044:7c6352a7221c

(lstat.c): Adapt rule to handle new parts of xstat.in. (lstat.c): Likewise.
author Jim Meyering <jim@meyering.net>
date Sun, 19 Dec 1999 10:46:19 +0000
parents 3002e3481ea1
children 188eccfa9df0
files lib/Makefile.am
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -33,9 +33,19 @@
 
 EXTRA_DIST = xstat.in
 lstat.c: xstat.in
-	sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t
+	sed \
+	  -e '/@IGNORE@/d' \
+	  -e 's/@xstat@/lstat/g' \
+	  -e '/_LSTAT_ONLY@/d' \
+	  -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \
+	  $(srcdir)/xstat.in > $@-t
 	mv $@-t $@
 
 stat.c: xstat.in
-	sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t
+	sed \
+	  -e '/@IGNORE@/d' \
+	  -e 's/@xstat@/stat/g' \
+	  -e '/_STAT_ONLY@/d' \
+	  -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \
+	  $(srcdir)/xstat.in > $@-t
 	mv $@-t $@