diff options
author | Jim Meyering <jim@meyering.net> | 1998-12-12 05:46:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-12-12 05:46:02 +0000 |
commit | 8c97b5c46e1972d919dd59f8f61f414e44451b9e (patch) | |
tree | c781047faef1ff6ecd9e62cdbbb9e8a020f246bc /lib | |
parent | 4ff6b430256ad32df66ab29803a1f77594e978c5 (diff) | |
download | coreutils-8c97b5c46e1972d919dd59f8f61f414e44451b9e.tar.xz |
(lstat.c): Add rule to generate this from xstat.in.
(stat.c): Likewise.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index ba5590289..576d6f00b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -24,4 +24,12 @@ makepath.h modechange.h mountlist.h hash.h path-concat.h pathmax.h \ posixtm.h quotearg.h regex.h safe-read.h save-cwd.h savedir.h strverscmp.h \ xalloc.h xstrtol.h xstrtoul.h -BUILT_SOURCES = getdate.c +BUILT_SOURCES = getdate.c lstat.c stat.c + +lstat.c: xstat.in + sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t + mv $@-t $@ + +stat.c: xstat.in + sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t + mv $@-t $@ |