X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FMakefile.am;h=23499be4204b0999977cdc8947b1e418388ace33;hb=691c858a4e2c7d47e41ca3b5c4ac4aab77b8f472;hp=ba559028973e34aef4929ca3daa94963da5bf4b0;hpb=20ab81ae46c2a270f426322776acbdc2ab99eadd;p=gnulib.git diff --git a/lib/Makefile.am b/lib/Makefile.am index ba5590289..23499be42 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -24,4 +24,29 @@ 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 strcasecmp.c strncasecmp.c + +EXTRA_DIST = xstat.in strcasecmp.cin +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 $@ + +strcasecmp.c: strcasecmp.cin + sed \ + -e '/@IGNORE@/d' \ + -e 's/@xstrcasecmp@/strcasecmp/g' \ + -e 's/{{.*}}//g' \ + $(srcdir)/strcasecmp.cin > $@-t + mv $@-t $@ + +strncasecmp.c: strcasecmp.cin + sed \ + -e '/@IGNORE@/d' \ + -e 's/@xstrcasecmp@/strncasecmp/g' \ + -e 's/{{\(.*\)}}/\1/g' \ + $(srcdir)/strcasecmp.cin > $@-t + mv $@-t $@