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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d023c995b19530a236a8997db4d4bf02ed348da;p=pspp (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 $@