ifeq ($(PREFIX),) PREFIX := /usr/local/ endif ifeq ($(LIBDIR),) LIBDIR := lib/ endif PRODUCTVER=0101 all: default pack fresh: clean default pack systemlibs: systemlibtarget pack windows: windowstarget default: python -m nuitka --follow-imports --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py windowstarget: 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 systemlibtarget: python -m nuitka --nofollow-imports --follow-import=misc --follow-import=monkeypatch --follow-import=pleroma --follow-import=timeconvert --follow-import=videowidget --follow-import=audiowidget --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 cp README.md dist cp LICENSE dist cp COPYING dist clean: rm -r dist || true install: 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