diff options
Diffstat (limited to 't/suffix-custom-subobj.sh')
-rw-r--r-- | t/suffix-custom-subobj.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/t/suffix-custom-subobj.sh b/t/suffix-custom-subobj.sh index 028217aee..2fb90f62a 100644 --- a/t/suffix-custom-subobj.sh +++ b/t/suffix-custom-subobj.sh @@ -14,8 +14,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Tests that Automake understands suffix rules with subdir objects. -# Reported by John Ratliff. +# Tests that pattern rules with subdir objects are understood. +# Originally reported by John Ratliff against suffix rules. required=cc . test-init.sh @@ -26,12 +26,9 @@ AC_OUTPUT EOF cat >Makefile.am << 'END' -AUTOMAKE_OPTIONS = subdir-objects -SUFFIXES = .baz .o # We fake here: -.baz.o: -## Account for VPATH issues on weaker make implementations. - cp `test -f '$<' || echo $(srcdir)/`$< $@ +%.o: %.baz + cp $< $@ bin_PROGRAMS = foo foo_SOURCES = foo.c sub/bar.baz @@ -53,7 +50,7 @@ $AUTOMAKE -a ./configure -run_make OBJEXT=quux test-fake +$MAKE test-fake OBJEXT=quux $MAKE test-real : |