plchat/Makefile

31 lines
1.0 KiB
Makefile
Raw Normal View History

2021-04-15 15:16:38 -05:00
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
2021-04-16 20:59:52 -05:00
PRODUCTVER=0001
2021-04-15 15:16:38 -05:00
2021-04-16 20:59:52 -05:00
all: default pack
fresh: clean default pack
systemlibs: systemlibtarget pack
default:
nuitka3 --follow-imports --nofollow-import-to=PyQt5 --nofollow-import-to=PySide --nofollow-import-to=PyQt4 --nofollow-import-to=PySide2 --windows-disable-console --windows-icon-from-ico=fedi.ico --windows-company-name=plchat --windows-product-name=plchat --windows-product-version=$(PRODUCTVER) --python-flag=-O -o plchat plchat.py
systemlibtarget:
nuitka3 --nofollow-imports --follow-import=misc --follow-import=monkeypatch --follow-import=pleroma --follow-import=timeconvert --follow-import=videowidget --follow-import=audiowidget --windows-disable-console --windows-icon-from-ico=fedi.ico --windows-company-name=plchat --windows-product-name=plchat --windows-product-version=$(PRODUCTVER) --python-flag=-O -o plchat plchat.py
pack:
mkdir dist
mv plchat dist
cp fedi.svg dist
cp fedi.ico dist
cp send.svg dist
cp unread.svg dist
clean:
2021-04-16 22:22:31 -05:00
rm -r dist || true
install:
install dist/plchat $(PREFIX)/bin