*** empty log message ***
[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 = libfetish.a
6
7 INCLUDES = -I.. -I$(srcdir) -I../intl
8
9 libfetish_a_SOURCES = \
10   getdate.y posixtm.c addext.c argmatch.c backupfile.c basename.c \
11   canon-host.c closeout.c dirname.c exclude.c filemode.c diacrit.c \
12   full-write.c getopt.c getopt1.c getugroups.c hard-locale.c hash.c \
13   human.c idcache.c isdir.c linebuffer.c long-options.c makepath.c \
14   md5.c memcasecmp.c memcoll.c modechange.c obstack.c path-concat.c \
15   quotearg.c readtokens.c readutmp.c safe-read.c same.c save-cwd.c \
16   savedir.c stripslash.c userspec.c version-etc.c xgetcwd.c xgethostname.c \
17   xmalloc.c xstrdup.c xstrtod.c xstrtol.c xstrtoul.c xstrtoumax.c yesno.c
18
19 libfetish_a_LIBADD = @LIBOBJS@ @ALLOCA@
20 libfetish_a_DEPENDENCIES = $(libfetish_a_LIBADD)
21
22 noinst_HEADERS = \
23   argmatch.h backupfile.h bumpalloc.h closeout.h diacrit.h dirname.h error.h \
24   exclude.h filemode.h fnmatch.h fsusage.h getdate.h getline.h getopt.h \
25   getpagesize.h group-member.h hard-locale.h hash.h human.h lchown.h \
26   linebuffer.h long-options.h md5.h memcasecmp.h memcoll.h \
27   makepath.h modechange.h mountlist.h nanosleep.h obstack.h \
28   path-concat.h pathmax.h posixtm.h quotearg.h readtokens.h \
29   readutmp.h regex.h safe-read.h same.h save-cwd.h savedir.h \
30   strverscmp.h version-etc.h xalloc.h xstrtod.h xstrtol.h
31
32 BUILT_SOURCES = getdate.c lstat.c stat.c
33 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
34 DISTCLEANFILES = lstat.c stat.c
35
36 EXTRA_DIST = xstat.in
37 lstat.c: xstat.in
38         sed \
39           -e '/@IGNORE@/d' \
40           -e 's/@xstat@/lstat/g' \
41           -e '/_LSTAT_ONLY@/d' \
42           -e '/@BEGIN_STAT_ONLY@/,/@END_STAT_ONLY@/d' \
43           $(srcdir)/xstat.in > $@-t
44         mv $@-t $@
45
46 stat.c: xstat.in
47         sed \
48           -e '/@IGNORE@/d' \
49           -e 's/@xstat@/stat/g' \
50           -e '/_STAT_ONLY@/d' \
51           -e '/@BEGIN_LSTAT_ONLY@/,/@END_LSTAT_ONLY@/d' \
52           $(srcdir)/xstat.in > $@-t
53         mv $@-t $@