Skip to content

Commit

Permalink
Create Makefile with necessary recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Feb 13, 2020
1 parent e83ed22 commit ad8bdd6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.PHONY: main

main: clean bundle installer

install:
@echo "Opening installer..."
@open "build/KhmerUnicodeInstaller/Khmer Unicode Installer.pkg"

bundle:
@echo "Building Khmer Unicode Keyboard [Bundle]\n"
@xcodebuild -project src/KhmerUnicode.xcodeproj \
-scheme "[Release] KhmerUnicode" \
build

installer:
@echo "Building Khmer Unicode Keyboard [Installer]\n"
@echo "Copying KhmerUnicode.bundle..."
@cp -r "build/KhmerUnicode/Build/Products/Release/KhmerUnicode.bundle" \
"Library/Keyboard Layouts"
@mkdir build/KhmerUnicodeInstaller
@/usr/local/bin/packagesbuild \
--verbose \
./Packages.pkgproj

clean:
@echo "Cleaning up..."
@echo "Removing build/KhmerUnicode directory..."
@rm -rf "build/KhmerUnicode"
@echo "Removing build/KhmerUnicodeInstaller directory..."
@rm -rf "build/KhmerUnicodeInstaller"
@echo "Removing build/ModuleCache.noindex directory..."
@rm -rf "build/ModuleCache.noindex"
@echo "Removing Library/Keyboard Layouts/KhmerUnicode.bundle from project..."
@rm -rf "Library/Keyboard Layouts/KhmerUnicode.bundle"

0 comments on commit ad8bdd6

Please sign in to comment.