job-scrapper/makefile

24 lines
558 B
Makefile
Raw Normal View History

2024-08-09 07:33:40 +00:00
#Works but is fucking big
#Single file version:
#pyinstaller lib/gui.py --onefile --add-data ./db/:./db
2024-08-09 10:21:46 +00:00
pypath := /home/ccppi2/.wine/drive_c/users/ccppi2/AppData/Local/Programs/Python/Python312/
2024-08-09 07:33:40 +00:00
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
2024-08-09 10:21:46 +00:00
wine-build:
wine64 $(pypath)/python.exe $(pypath)/Lib/site-packages/pyinstaller lib/gui.py
2024-08-09 07:33:40 +00:00
clean:
rm dist/db -r