view m4/Makefile.am.in @ 1636:2ab21e3ee2bc

Rewrite to avoid using fmt.
author Jim Meyering <jim@meyering.net>
date Tue, 12 Jan 1999 17:35:13 +0000
parents afd7d3a6ec49
children d99a03efa38e
line wrap: on
line source

## 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 | tr '\012' @) \
	  |(echo *.m4|tr ' ' @) \
	  |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
	  >> $@t
	sed -n '/^##m4-files-end/,$$p' $< >> $@t
	chmod a-w $@t
	mv $@t $@