Selaa lähdekoodia

VLCKit: move building/packaging to project folder

Rafaël Carré 13 vuotta sitten
vanhempi
commit
dedb383851
1 muutettua tiedostoa jossa 15 lisäystä ja 3 poistoa
  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