*** empty log message ***
[findutils.git] / lib / Makefile.am
blob51dbe1c0ecf1f20896a2f38c335214098ad32c4f
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                         getline.c \
41                         getline.h \
42                         basename.c
44 libfind_a_LIBADD = @LIBOBJS@ \
45                 @ALLOCA@
48 # Are these really needed?
49 EXTRA_DIST = \
50                 modetype.h \
51                 mktime.c \
52                 regex.c \
53                 wait.h \
54                 alloca.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 $@