23 lines
377 B
Makefile
23 lines
377 B
Makefile
|
#Works but is fucking big
|
||
|
#Single file version:
|
||
|
#pyinstaller lib/gui.py --onefile --add-data ./db/:./db
|
||
|
|
||
|
all:gui cli datafiles
|
||
|
|
||
|
gui:
|
||
|
pyinstaller lib/gui.py
|
||
|
make datafiles
|
||
|
cli:
|
||
|
pyinstaller lib/main.py
|
||
|
make datafiles
|
||
|
datafiles:
|
||
|
make db-dir
|
||
|
cp ./db/Cantons.db dist/db/
|
||
|
cp ./db/sqlite3.db dist/db/
|
||
|
cp ./lib/conf dist/gui/
|
||
|
db-dir:
|
||
|
mkdir -p dist/db
|
||
|
|
||
|
clean:
|
||
|
rm dist/db -r
|