31 lines
956 B
Makefile
31 lines
956 B
Makefile
ifeq ($(PREFIX),)
|
|
PREFIX := /usr/local
|
|
endif
|
|
PRODUCTVER=0100
|
|
|
|
|
|
all: default pack
|
|
|
|
fresh: clean default pack
|
|
|
|
systemlibs: systemlibtarget pack
|
|
|
|
default:
|
|
nuitka3 --follow-imports --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:
|
|
rm -r dist || true
|
|
|
|
install:
|
|
install dist/plchat $(PREFIX)/bin
|