plchat/Makefile

40 lines
1.6 KiB
Makefile
Raw Normal View History

2021-04-15 15:16:38 -05:00
ifeq ($(PREFIX),)
2021-04-17 12:38:40 -05:00
PREFIX := /usr/local/
endif
ifeq ($(LIBDIR),)
LIBDIR := lib/
2021-04-15 15:16:38 -05:00
endif
PRODUCTVER=0100
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:
2021-04-17 12:38:40 -05:00
python -m nuitka --follow-imports --include-module=win32ctypes --enable-plugin=qt-plugins --include-qt-plugins=all --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 || python -m nuitka --follow-imports --enable-plugin=qt-plugins --include-qt-plugins=all --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
2021-04-16 20:59:52 -05:00
systemlibtarget:
2021-04-17 12:38:40 -05:00
python -m nuitka --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
2021-04-16 20:59:52 -05:00
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:
2021-04-17 12:38:40 -05:00
mkdir $(PREFIX)$(LIBDIR)
install dist/plchat $(PREFIX)$(LIBDIR)
install dist/fedi.ico $(PREFIX)$(LIBDIR)
install dist/fedi.svg $(PREFIX)$(LIBDIR)
install dist/send.svg $(PREFIX)$(LIBDIR)
install dist/unread.svg $(PREFIX)$(LIBDIR)
ln -sf $(PREFIX)$(LIBDIR)plchat $(PREFIX)bin/plchat