X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FMakefile.am;h=f58efe5682874088be00765c4a8efe51b0bf0fbf;hb=378873e8508590d356a540e5db32592750fb18b8;hp=62a915036b8f19e715588786cfe16d7b9eb6788f;hpb=0a0f359815e5ac33364088a1c397cae458b77abd;p=gnulib.git diff --git a/lib/Makefile.am b/lib/Makefile.am index 62a915036..f58efe568 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -28,12 +28,24 @@ savedir.h strverscmp.h \ version-etc.h xalloc.h xstrtol.h BUILT_SOURCES = getdate.c lstat.c stat.c +MAINTAINERCLEANFILES = $(BUILT_SOURCES) +DISTCLEANFILES = lstat.c stat.c EXTRA_DIST = xstat.in lstat.c: xstat.in - sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t + sed \ + -e '/@IGNORE@/d' \ + -e 's/@xstat@/lstat/g' \ + -e '/_LSTAT_ONLY@/d' \ + -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \ + $(srcdir)/xstat.in > $@-t mv $@-t $@ stat.c: xstat.in - sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t + sed \ + -e '/@IGNORE@/d' \ + -e 's/@xstat@/stat/g' \ + -e '/_STAT_ONLY@/d' \ + -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \ + $(srcdir)/xstat.in > $@-t mv $@-t $@