From 8c2b0feee7aa1b6efb635eb0620b2e17feec1a32 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 17 Apr 2021 12:38:40 -0500 Subject: [PATCH] update makefile --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5edbf38..49ffd06 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ ifeq ($(PREFIX),) - PREFIX := /usr/local + PREFIX := /usr/local/ +endif +ifeq ($(LIBDIR),) + LIBDIR := lib/ endif PRODUCTVER=0100 @@ -11,10 +14,10 @@ fresh: clean default pack systemlibs: systemlibtarget pack default: - nuitka3 --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 + 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 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 + 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 pack: mkdir dist @@ -28,4 +31,10 @@ clean: rm -r dist || true install: - install dist/plchat $(PREFIX)/bin \ No newline at end of file + 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 \ No newline at end of file