]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious failure in test on TAGS support
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 16 Sep 2012 07:47:19 +0000 (09:47 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 16 Sep 2012 07:47:19 +0000 (09:47 +0200)
* t/tags-pr12372.sh (Makefile.am): Use pattern rules rather than
old-fashioned suffix rules.
(sub/Makefile.am): Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/tags-pr12372.sh

index 66b40a0965b473cdff07e943d32ccbfb34b960ca..caba463bf504827f237589cb0f65f1478fc4c581 100755 (executable)
@@ -28,7 +28,7 @@ END
 
 cat > Makefile.am <<'END'
 all-local: tags
-.pc.o:
+%.o: %.pc
        sed -e 's/\[/{/' -e 's/\]/}/' $(srcdir)/$*.pc >$*.c
        $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c
        rm -f $*.c
@@ -42,7 +42,7 @@ END
 mkdir sub
 cat > sub/Makefile.am <<'END'
 all-local: tags
-.pc.o:
+%.o: %.pc
        sed -e 's/@/a/g' $(srcdir)/$*.pc >$*.c
        $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $*.c
        rm -f $*.c