-libs :=
-libs += .libs/cycript
-libs += .libs/libcycript.dylib
-libs += .libs/libcycript-any.dylib
-libs += .libs/libcycript-sys.dylib
-libs += .libs/libcycript-sim.dylib
-libs += .libs/libcycript.o
+version := $(shell git describe --always --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$$@+\1.\2@;s@^v@@;s@%@~@g')
+deb := cycript_$(version)_iphoneos-arm.deb
+
+cycript :=
+cycript += Cycript_/cycript_
+cycript += Cycript_/libcycript.dylib
+cycript += Cycript_/libcycript-any.dylib
+cycript += Cycript_/libcycript-sys.dylib
+cycript += Cycript_/libcycript-sim.dylib
+
+framework :=
+framework += Cycript.framework/Cycript
+framework += Cycript.framework/Headers/Cycript.h
+
+all: cycript $(cycript) $(framework)