more autofuck simplifications
[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 = Makefile.am.in \
5 curslib.m4 \
6 funcdecl.m4 \
7 libesmtp.m4
8 ##m4-files-end
9
10 Makefile.am: Makefile.am.in
11         rm -f $@ $@t
12         sed -n '1,/^##m4-files-begin/p' Makefile.am.in > $@t
13         ( (echo EXTRA_DIST = Makefile.am.in | tr '\012' @); \
14           (echo *.m4|tr ' ' @) ) \
15           |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
16           >> $@t
17         sed -n '/^##m4-files-end/,$$p' Makefile.am.in >> $@t
18         chmod a-w $@t
19         mv $@t $@