From: Jim Meyering Date: Sat, 12 Dec 1998 05:46:02 +0000 (+0000) Subject: (lstat.c): Add rule to generate this from xstat.in. X-Git-Tag: FILEUTILS-4_1-b1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c97b5c46e1972d919dd59f8f61f414e44451b9e;p=thirdparty%2Fcoreutils.git (lstat.c): Add rule to generate this from xstat.in. (stat.c): Likewise. --- diff --git a/lib/Makefile.am b/lib/Makefile.am index ba55902897..576d6f00b7 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 $@