2011-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ tests: fix VPATH auto-expansion workarounds.
+ * tests/suffix10.test, tests/suffix11.test, tests/suffix12.test,
+ tests/suffix3.test, tests/suffix5.test, tests/suffix8.test:
+ Ensure $< is not surrounded by white space, to prevent Solaris
+ make from applying automatic VPATH text expansion.
+
tests: fix VPATH auto-expansion workarounds.
* tests/parallel-tests8.test, tests/suffix13.test:
Ensure $< is not surrounded by white space, to prevent Solaris
#! /bin/sh
-# Copyright (C) 2002, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
&& echo 'WORD: "foo";' \
&& echo '%%' \
## account for VPATH issues on weaker make implementations
- && cat `test -f $< || echo $(srcdir)/`$<; \
+ && cat `test -f '$<' || echo $(srcdir)/`$<; \
} > $@-t
mv -f $@-t $@
.PHONY: test
#! /bin/sh
-# Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
.y-z.c .x_.c:
## account for VPATH issues on weaker make implementations (e.g. IRIX 6.5)
- sed 's/INTEGER/int/g' `test -f $< || echo $(srcdir)/`$< >$@
+ sed 's/INTEGER/int/g' `test -f '$<' || echo $(srcdir)/`$< >$@
CLEANFILES = foo.c bar.c baz1.c baz2.c
#! /bin/sh
-# Copyright (C) 2002, 2003, 2006, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006, 2010, 2011 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# we fake here:
.baz.o:
## account for VPATH issues on weaker make implementations
- cp `test -f $< || echo $(srcdir)/`$< $@
+ cp `test -f '$<' || echo $(srcdir)/`$< $@
bin_PROGRAMS = foo
foo_SOURCES = foo.c sub/bar.baz
#! /bin/sh
-# Copyright (C) 1999, 2001, 2002, 2010 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2010, 2011 Free Software Foundation,
+# Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
cat > Makefile.am << 'END'
SUFFIXES = .zoo
.zoo.cc:
- sed 's/INTEGER/int/g' `test -f $< || echo $(srcdir)/`$< >$@
+ sed 's/INTEGER/int/g' `test -f '$<' || echo $(srcdir)/`$< >$@
bin_PROGRAMS = foo
foo_SOURCES = foo.zoo
# This is required by "make distcheck". The useless indirection is
#! /bin/sh
-# Copyright (C) 2001, 2002, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
cat > Makefile.am << 'END'
.k.lo:
## account for VPATH issues on weaker make implementations
- (echo $< && cat `test -f $< || echo $(srcdir)/`$<) > $@
+ (echo $< && cat `test -f '$<' || echo $(srcdir)/`$<) > $@
noinst_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.k
#! /bin/sh
-# Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2010, 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# The elaborate cp commands below account for VPATH issues on
# weaker make implementations (e.g. IRIX 6.5).
.x_.y_:
- cp `test -f $< || echo $(srcdir)/`$< $@
+ cp `test -f '$<' || echo $(srcdir)/`$< $@
.y_.o:
- cp `test -f $< || echo $(srcdir)/`$< $@
+ cp `test -f '$<' || echo $(srcdir)/`$< $@
.y_.z_:
- cp `test -f $< || echo $(srcdir)/`$< $@
+ cp `test -f '$<' || echo $(srcdir)/`$< $@
.z_.lo:
- cp `test -f $< || echo $(srcdir)/`$< $@
+ cp `test -f '$<' || echo $(srcdir)/`$< $@
# Some make implementations don't remove intermediate files
# automatically, thus causing "make distcheck" to fail if