diff options
Diffstat (limited to 't/suffix-custom-subobj-and-specflg.sh')
-rw-r--r-- | t/suffix-custom-subobj-and-specflg.sh | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/t/suffix-custom-subobj-and-specflg.sh b/t/suffix-custom-subobj-and-specflg.sh index 2ccb9dc8b..d24c2ce12 100644 --- a/t/suffix-custom-subobj-and-specflg.sh +++ b/t/suffix-custom-subobj-and-specflg.sh @@ -14,9 +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 renamed objects -# and subdir objects. -# Reported by Florian Briegel. +# Tests that Automake understands suffix-based pattern rules with +# renamed objects and subdir objects. Reported by Florian Briegel. required=cc . test-init.sh @@ -27,18 +26,17 @@ AC_OUTPUT EOF cat >Makefile.am << 'END' -AUTOMAKE_OPTIONS = subdir-objects -SUFFIXES = .baz .c -.baz.c: - case $@ in sub/*) $(MKDIR_P) sub;; *) :;; esac -## Account for VPATH issues on weaker make implementations (e.g. IRIX 6.5). - cp `test -f '$<' || echo $(srcdir)/`$< $@ +%.c: %.baz + test -d $(@D) || $(MKDIR_P) $(@D) + cp $< $@ DISTCLEANFILES = sub/bar.c bin_PROGRAMS = foo -foo_SOURCES = foo.c sub/bar.baz -foo_CFLAGS = +foo_SOURCES = foo.c +nodist_foo_SOURCES = sub/bar.c +EXTRA_DIST = sub/bar.baz +foo_CFLAGS = -DRETVAL=0 END mkdir sub @@ -47,7 +45,7 @@ extern int foo (); int main () { return foo (); } END cat > foo.c <<'END' -int foo () { return 0; } +int foo () { return RETVAL; } END $ACLOCAL |