浏览代码

VLCKit: move building/packaging to project folder

Rafaël Carré 13 年之前
父节点
当前提交
dedb383851
共有 1 个文件被更改,包括 15 次插入3 次删除
  1. 15 3
      Makefile

+ 15 - 3
Makefile

@@ -1,5 +1,17 @@
-all:
-	xcodebuild
+VLCKit.zip: VLCKit
+	zip -r -y -9 $@ $<
+
+VLCKit: build/Debug/VLCKit.framework
+	rm -rf $@-tmp && mkdir -p $@-tmp
+	cp -R $< $@-tmp
+	cp ../../../COPYING $@-tmp
+	mv $@-tmp $@ && touch $@
+
+build/Debug/VLCKit.framework:
+	xcodebuild -project VLCKit.xcodeproj -target "Build Everything"
 
 clean:
-	xcodebuild clean
+	xcodebuild -project VLCKit.xcodeproj clean
+	rm -fr VLCKit VLCKit.zip
+
+.PHONY: clean