Skip to content

Commit f8d13bf

Browse files
committed
add Makefile
1 parent 95bd92a commit f8d13bf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
install-linux:
3+
sudo mv dist/linux64/fontmake-mp /usr/local/bin/fontmake-mp
4+
5+
install-macos:
6+
sudo mv dist/macos64/fontmake-mp /usr/local/bin/fontmake-mp
7+
8+
# Must be executed on Linux 64bit arch system
9+
linux-build:
10+
rm *.pyc
11+
pyinstaller -c --onefile --hidden-import=fontmake --clean --distpath="dist/linux64" -n fontmake-mp fmp.py
12+
13+
# Must be executed on macOS 64bit arch system
14+
macos-build:
15+
rm *.pyc
16+
pyinstaller -c --onefile --hidden-import=fontmake --clean --distpath="dist/macos64" -n fontmake-mp fmp.py
17+
18+
# cross-platform uninstall for users who installed with make targets above
19+
uninstall:
20+
rm /usr/local/bin/fontmake-mp
21+
22+
.PHONY: linux-build macos-build install-linux install-macos uninstall

0 commit comments

Comments
 (0)