($(srcdir)/Makefile.am): Use more portable

$(srcdir)/../Makefile.am.in, rather than $<.
Suggestion from Michael Elizabeth Chastain.
This commit is contained in:
Jim Meyering 2004-02-11 11:46:34 +00:00
parent 188f1dbccf
commit a2411e0830

View File

@ -23,9 +23,9 @@ check: $(maint_gen)
$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
rm -f $@ $@t
sed -n '1,/^##test-files-begin/p' $< > $@t
sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
echo "x = $$tool" >> $@t
$(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
sed -n '/^##test-files-end/,$$p' $< >> $@t
sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
mv $@t $@