simplify build system
[apps/madmutt.git] / m4 / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3 ##m4-files-begin
4 EXTRA_DIST = glibc2.m4 intdiv0.m4 intmax.m4 inttypes_h.m4 inttypes-h.m4 inttypes-pri.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lock.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 visibility.m4 wchar_t.m4 wint_t.m4 xsize.m4 README Makefile.am.in \
5 codeset.m4 \
6 curslib.m4 \
7 funcdecl.m4 \
8 gettext.m4 \
9 glibc21.m4 \
10 gssapi.m4 \
11 iconv.m4 \
12 lcmessage.m4 \
13 libesmtp.m4 \
14 progtest.m4 \
15 types.m4
16 ##m4-files-end
17
18 Makefile.am: Makefile.am.in
19         rm -f $@ $@t
20         sed -n '1,/^##m4-files-begin/p' Makefile.am.in > $@t
21         ( (echo EXTRA_DIST = README Makefile.am.in | tr '\012' @); \
22           (echo *.m4|tr ' ' @) ) \
23           |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
24           >> $@t
25         sed -n '/^##m4-files-end/,$$p' Makefile.am.in >> $@t
26         chmod a-w $@t
27         mv $@t $@