-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc43e05
commit 551a31b
Showing
3 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
XOCDEBUILD=/usr/bin/xcodebuild | ||
PACKAGES=/usr/local/bin/packagesbuild | ||
CONFIGURATION_BUILD_DIR=$(PWD)/build/KhmerUnicodeBundle/Products/Release | ||
|
||
.PHONY: main | ||
|
||
main: clean bundle-info bundle installer | ||
main: clean build installer | ||
|
||
install: | ||
@echo "Opening installer..." | ||
@open "build/KhmerUnicodeInstaller/Khmer Unicode Installer.pkg" | ||
|
||
bundle: | ||
build-info: | ||
@echo "Bundle build settings..." | ||
@$(XOCDEBUILD) -project src/KhmerUnicodeBundle/KhmerUnicode.xcodeproj \ | ||
-scheme "[Release] KhmerUnicode" \ | ||
-showBuildSettings \ | ||
CONFIGURATION_BUILD_DIR=$(CONFIGURATION_BUILD_DIR) | ||
|
||
.PHONY: build | ||
build: build-info | ||
@mkdir -p build | ||
@echo "Building Khmer Unicode Keyboard [Bundle]\n" | ||
@xcodebuild -project src/KhmerUnicodeBundle/KhmerUnicode.xcodeproj \ | ||
@$(XOCDEBUILD) -project src/KhmerUnicodeBundle/KhmerUnicode.xcodeproj \ | ||
-scheme "[Release] KhmerUnicode" \ | ||
build | ||
@echo "Removing existing KhmerUnicode.bundle from KhmerUnicodeInstaller..." | ||
@rm -rf "src/KhmerUnicodeInstaller/Library/Keyboard Layouts/KhmerUnicode.bundle" | ||
build \ | ||
CONFIGURATION_BUILD_DIR=$(CONFIGURATION_BUILD_DIR) | ||
@echo "Copying KhmerUnicode.bundle to KhmerUnicodeInstaller..." | ||
@cp -r "build/KhmerUnicodeBundle/Products/Release/KhmerUnicode.bundle" \ | ||
"src/KhmerUnicodeInstaller/Library/Keyboard Layouts" | ||
@echo "\n[DONE] Ready to build the installer!" | ||
|
||
bundle-info: | ||
@echo "Bundle build settings..." | ||
@xcodebuild -project src/KhmerUnicodeBundle/KhmerUnicode.xcodeproj \ | ||
-scheme "[Release] KhmerUnicode" \ | ||
-showBuildSettings | ||
|
||
installer: | ||
@echo "Building Khmer Unicode Keyboard [Installer]\n" | ||
@rm -rf "build/KhmerUnicodeInstaller" | ||
@mkdir build/KhmerUnicodeInstaller | ||
@/usr/local/bin/packagesbuild \ | ||
@$(PACKAGES) \ | ||
--verbose \ | ||
./src/KhmerUnicodeInstaller/Packages.pkgproj | ||
./src/KhmerUnicodeInstaller/Packages.pkgproj \ | ||
|
||
clean: | ||
@echo "Cleaning up..." | ||
@rm -rf build/temp/*/ | ||
@echo "Removing build/KhmerUnicodeBundle directory..." | ||
@rm -rf "build/KhmerUnicodeBundle" | ||
@echo "Removing build/KhmerUnicodeInstaller directory..." | ||
@rm -rf "build/KhmerUnicodeInstaller" | ||
@rm -rf build | ||
@rm -rf "src/KhmerUnicodeInstaller/Library/Keyboard Layouts/KhmerUnicode.bundle" | ||
@echo "[DONE] Cleanup completed!\n" |
This file was deleted.
Oops, something went wrong.