3 EXTRA_DIST = alloca.c euidaccess.c fnmatch.c fsusage.c ftruncate.c \
4 getdate.y memcmp.c memcpy.c memset.c mkdir.c mktime.c mountlist.c \
5 posixtm.y rename.c rmdir.c stpcpy.c strdup.c strstr.c strtol.c strtoul.c
7 INCLUDES = -I.. -I$(srcdir)
9 fu_SOURCES = getdate.c posixtm.c argmatch.c backupfile.c basename.c \
10 dirname.c error.c fileblocks.c filemode.c \
11 full-write.c getopt.c getopt1.c getversion.c group-member.c idcache.c \
12 isdir.c long-options.c makepath.c modechange.c obstack.c \
13 safe-read.c save-cwd.c savedir.c stripslash.c userspec.c xgetcwd.c \
14 xmalloc.c xstrdup.c xstrtol.c xstrtoul.c yesno.c
16 fu_LIBADD = @LIBOBJS@ @ALLOCA@
18 noinst_HEADERS = argmatch.h backupfile.h error.h fnmatch.h fsusage.h \
19 getopt.h group-member.h long-options.h makepath.h modechange.h mountlist.h \
20 obstack.h pathmax.h save-cwd.h xstrtol.h xstrtoul.h
22 BUILT_SOURCES = getdate.c posixtm.c
24 # Since this directory contains two parsers, we have to be careful to avoid
25 # running two $(YACC)s during parallel makes. See below.
27 @echo expect 10 shift/reduce conflicts
28 $(YACC) $(srcdir)/getdate.y
31 # Make the rename atomic, in case sed is interrupted and later rerun.
32 # The artificial dependency on getdate.c keeps the two parsers from being
33 # built in parallel. Enforcing this little bit of sequentiality lets
34 # everyone (even those without bison) still run mostly parallel builds.
35 posixtm.c: posixtm.y getdate.c
36 $(YACC) $(srcdir)/posixtm.y
37 mv y.tab.c posixtm.tab.c
38 sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
39 mv tposixtm.c posixtm.c