* lib/Makefile.am (EXTRA_DIST): getline.[ch] added
[findutils.git] / lib / Makefile.am
blob4e3d09e07bd3c47b2341f27371776544a5285856
1 AUTOMAKE_OPTIONS = ansi2knr
2 SUBDIRS = posix
3 noinst_LIBRARIES = libfind.a
4 localedir = $(datadir)/locale
5 INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\"
6 libfind_a_SOURCES = regex.h \
7                         argmatch.h \
8                         argmatch.c \
9                         basename.h \
10                         basename.c \
11                         dirname.c \
12                         dirname.h \
13                         filemode.c \
14                         filemode.h \
15                         getopt.c \
16                         getopt.h \
17                         getopt1.c \
18                         human.c \
19                         human.h \
20                         idcache.c \
21                         listfile.c \
22                         modechange.c \
23                         modechange.h \
24                         nextelem.c \
25                         pathmax.h \
26                         quotearg.c \
27                         quotearg.h \
28                         savedir.c \
29                         savedir.h \
30                         xmalloc.c \
31                         xalloc.h \
32                         xstrdup.c \
33                         xgetcwd.c \
34                         fnmatch.h \
35                         xstrtol.c \
36                         xstrtol.h \
37                         xstrtoul.c \
38                         xstrtoul.h \
39                         xstrtoumax.c \
40                         basename.c \
41                         yesno.c
43 libfind_a_LIBADD = @LIBOBJS@ \
44                 @ALLOCA@
47 # Are these really needed?
48 EXTRA_DIST = \
49                 modetype.h \
50                 mktime.c \
51                 regex.c \
52                 wait.h \
53                 alloca.c \
54                 getline.c \
55                 getline.h \
56                 xstat.in
58 BUILT_SOURCES = lstat.c stat.c
59 DISTCLEANFILES = lstat.c stat.c
61 lstat.c: xstat.in
62         sed \
63           -e '/@IGNORE@/d' \
64           -e 's/@xstat@/lstat/g' \
65           -e '/_LSTAT_ONLY@/d' \
66           -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \
67           $(srcdir)/xstat.in > $@-t
68         mv $@-t $@
70 stat.c: xstat.in
71         sed \
72           -e '/@IGNORE@/d' \
73           -e 's/@xstat@/stat/g' \
74           -e '/_STAT_ONLY@/d' \
75           -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \
76           $(srcdir)/xstat.in > $@-t
77         mv $@-t $@