(EXTRA_DIST): Add xstat.in.
[gnulib.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3 AUTOMAKE_OPTIONS = ../src/ansi2knr
4
5 noinst_LIBRARIES = libfu.a
6
7 INCLUDES = -I.. -I$(srcdir) -I../intl
8
9 libfu_a_SOURCES = getdate.y posixtm.c getopt.c getopt1.c \
10 addext.c argmatch.c backupfile.c basename.c \
11 closeout.c dirname.c exclude.c filemode.c \
12 full-write.c human.c idcache.c \
13 isdir.c long-options.c makepath.c modechange.c hash.c path-concat.c \
14 quotearg.c safe-read.c save-cwd.c savedir.c stripslash.c userspec.c xgetcwd.c \
15 xmalloc.c xstrdup.c xstrtol.c xstrtoul.c yesno.c
16
17 libfu_a_LIBADD = @LIBOBJS@ @ALLOCA@
18 libfu_a_DEPENDENCIES = $(libfu_a_LIBADD)
19
20 noinst_HEADERS = argmatch.h backupfile.h closeout.h \
21 dirname.h error.h exclude.h filemode.h fnmatch.h fsusage.h \
22 getdate.h getline.h getopt.h group-member.h human.h lchown.h long-options.h \
23 makepath.h modechange.h mountlist.h hash.h path-concat.h pathmax.h \
24 posixtm.h quotearg.h regex.h safe-read.h save-cwd.h savedir.h strverscmp.h \
25 xalloc.h xstrtol.h xstrtoul.h
26
27 BUILT_SOURCES = getdate.c lstat.c stat.c
28
29 EXTRA_DIST = xstat.in
30 lstat.c: xstat.in
31         sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t
32         mv $@-t $@
33
34 stat.c: xstat.in
35         sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t
36         mv $@-t $@