Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Jul 8, 2018
1 parent 95bd92a commit f8d13bf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

install-linux:
sudo mv dist/linux64/fontmake-mp /usr/local/bin/fontmake-mp

install-macos:
sudo mv dist/macos64/fontmake-mp /usr/local/bin/fontmake-mp

# Must be executed on Linux 64bit arch system
linux-build:
rm *.pyc
pyinstaller -c --onefile --hidden-import=fontmake --clean --distpath="dist/linux64" -n fontmake-mp fmp.py

# Must be executed on macOS 64bit arch system
macos-build:
rm *.pyc
pyinstaller -c --onefile --hidden-import=fontmake --clean --distpath="dist/macos64" -n fontmake-mp fmp.py

# cross-platform uninstall for users who installed with make targets above
uninstall:
rm /usr/local/bin/fontmake-mp

.PHONY: linux-build macos-build install-linux install-macos uninstall

0 comments on commit f8d13bf

Please sign in to comment.