]> git.saurik.com Git - cycript.git/blobdiff - makefile
I hate the Bison 2.3/2.4 split.
[cycript.git] / makefile
index 3100f0a1764b154992b3df89f083daf330e6df52..61768dd52b0f2c4fc3b82e2ffcdd64c874608ec0 100644 (file)
--- a/makefile
+++ b/makefile
@@ -64,6 +64,8 @@ flags += -I. -Iinclude -I$(shell apr-1-config --includedir)
 
 all += $(lib)cycript.$(dll)
 
+filters += $(shell bison <(echo '%code{}%%_:') -o/dev/null 2>/dev/null && echo Bison24 || echo Bison23)
+
 ifdef arch
 deb := $(shell grep ^Package: control.in | cut -d ' ' -f 2-)_$(shell grep ^Version: control.in | cut -d ' ' -f 2 | sed -e 's/\#/$(svn)/')_$(arch).deb