(lstat.c): Add rule to generate this from xstat.in.
authorJim Meyering <jim@meyering.net>
Sat, 12 Dec 1998 05:46:02 +0000 (05:46 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Dec 1998 05:46:02 +0000 (05:46 +0000)
(stat.c): Likewise.

lib/Makefile.am

index ba55902..576d6f0 100644 (file)
@@ -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 $@