summaryrefslogtreecommitdiff
path: root/m4/Makefile.am.in
blob: aa68ff973666c01f6ef583ccf33ec9bcf57f4a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## Process this file with automake to produce Makefile.in -*-Makefile-*-

##m4-files-begin
##m4-files-end

Makefile.am: Makefile.am.in
	rm -f $@ $@t
	sed -n '1,/^##m4-files-begin/p' $< > $@t
	( echo EXTRA_DIST = README Makefile.am.in; \
	  find . -type f -name '*.m4' -print |sed 's,^\./,,' |sort ) \
	    |fmt | (tr '\012' @; echo) \
	    |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
	  >> $@t
	sed -n '/^##m4-files-end/,$$p' $< >> $@t
	chmod a-w $@t
	mv $@t $@