]> granicus.if.org Git - graphviz/commitdiff
Update yacc rules for osx
authorerg <devnull@localhost>
Tue, 22 Aug 2006 16:09:39 +0000 (16:09 +0000)
committererg <devnull@localhost>
Tue, 22 Aug 2006 16:09:39 +0000 (16:09 +0000)
lib/graph/Makefile.old

index d70e672439e02a2f8e029261afb720f5fc20bc48..c6edaaa08af05074b93b93765c954a70abc1595f 100644 (file)
@@ -23,7 +23,7 @@ lexer.o : parser.o
 
 parser.c : parser.y
        $(YACC) -dv parser.y
-       if test $(ARCH) != "netbsd.i386"; then $(SED) 1s/#include.*// < y.tab.c | $(SED) "s/yy/ag/g" > parser.c; else $(SED) "s/yy/ag/g" < y.tab.c > parser.c; fi
+       if test $(ARCH) = "netbsd.i386" -o $(ARCH) = "osx.i386"; then $(SED) "s/yy/ag/g" < y.tab.c > parser.c; else $(SED) 1s/#include.*// < y.tab.c | $(SED) "s/yy/ag/g" > parser.c; fi
        $(SED) "s/yy/ag/g" < y.tab.h > parser.h
        $(RM) y.tab.c y.tab.h