* m4/Makefile.am: new version of file
[findutils.git] / lib / Makefile.am
blobf933574b0ec02341fc496546b03d04225375a4f9
1 AUTOMAKE_OPTIONS = ansi2knr
2 noinst_LIBRARIES = libfind.a
3 localedir = $(datadir)/locale
4 INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\"
5 libfind_a_SOURCES = regex.h \
6                         dirname.c \
7                         dirname.h \
8                         error.c \
9                         error.h \
10                         filemode.c \
11                         filemode.h \
12                         getopt.c \
13                         getopt.h \
14                         getopt1.c \
15                         idcache.c \
16                         listfile.c \
17                         modechange.c \
18                         modechange.h \
19                         pathmax.h \
20                         nextelem.c \
21                         savedir.c \
22                         savedir.h \
23                         xmalloc.c \
24                         xalloc.h \
25                         xstrdup.c \
26                         xgetcwd.c \
27                         fnmatch.h \
28                         xstrtol.c \
29                         xstrtol.h \
30                         xstrtoul.c \
31                         xstrtoul.h \
32                         getline.c \
33                         getline.h \
34                         basename.c
36 libfind_a_LIBADD = @LIBOBJS@ \
37                 @ALLOCA@
40 # Are these really needed?
41 EXTRA_DIST = modetype.h \
42                 wait.h \
43                 alloca.c \
44                 getline.h \
45                 xstat.in
47 BUILT_SOURCES = lstat.c stat.c
48 DISTCLEANFILES = lstat.c stat.c
50 lstat.c: xstat.in
51         sed \
52           -e '/@IGNORE@/d' \
53           -e 's/@xstat@/lstat/g' \
54           -e '/_LSTAT_ONLY@/d' \
55           -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \
56           $(srcdir)/xstat.in > $@-t
57         mv $@-t $@
59 stat.c: xstat.in
60         sed \
61           -e '/@IGNORE@/d' \
62           -e 's/@xstat@/stat/g' \
63           -e '/_STAT_ONLY@/d' \
64           -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \
65           $(srcdir)/xstat.in > $@-t
66         mv $@-t $@