imported from standard location
[findutils.git] / m4 / Makefile.am
blob28a8868ce40f5796d1de229160055b2a2133e2ab
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
3 ##m4-files-begin
4 EXTRA_DIST = README Makefile.am.in assert.m4 check-decl.m4 check-type.m4 \
5 const.m4 decl.m4 error.m4 fnmatch.m4 fstypename.m4 getline.m4 glibc.m4 \
6 inttypes_h.m4 isc-posix.m4 jm-glibc-io.m4 jm-macros.m4 jm-mktime.m4 lfs.m4 \
7 ls-mntd-fs.m4 lstat.m4 malloc.m4 memcmp.m4 mktime.m4 perl.m4 prereq.m4 \
8 putenv.m4 readdir.m4 realloc.m4 regex.m4 st_dm_mode.m4 st_mtim.m4 stat.m4 \
9 strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4 utime.m4 utimes.m4
11 ##m4-files-end
13 Makefile.am: Makefile.am.in
14         rm -f $@ $@t
15         sed -n '1,/^##m4-files-begin/p' $< > $@t
16         ( echo EXTRA_DIST = README Makefile.am.in; \
17           find . -type f -name '*.m4' -print |sed 's,^\./,,' |sort ) \
18             |fmt | (tr '\012' @; echo) \
19             |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
20           >> $@t
21         sed -n '/^##m4-files-end/,$$p' $< >> $@t
22         chmod a-w $@t
23         mv $@t $@