From d3e9f3ac6f3e89ae9acb2064598603d98893915c Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 24 Apr 2021 15:08:45 -0500 Subject: [PATCH] Clean up build system --- Makefile | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 288b815..cc8c644 100644 --- a/Makefile +++ b/Makefile @@ -4,35 +4,24 @@ endif ifeq ($(LIBDIR),) LIBDIR := lib/ endif -PRODUCTVER=0101 all: default pack -fresh: clean default pack - systemlibs: systemlibtarget pack -deb: debtarget pack packdeb - -windows: windowstarget - default: python3 -m nuitka --follow-imports --file-reference-choice=runtime --include-module=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py -windowstarget: - python3 -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 - -debtarget: - echo "You will need to make .deb packages using bash, ensuring you are doing so." - sudo ./deb/DEBIAN/postinst - source /usr/lib/plchat/venv/bin/activate - pip3 install keyring notify-py appdirs python-dateutil requests urllib3 websockets PyQt5 python-magic - python3 -m nuitka --file-reference-choice=runtime --follow-imports --include-module=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py - systemlibtarget: python3 -m nuitka --file-reference-choice=runtime --nofollow-imports --follow-import-to=misc --follow-import-to=monkeypatch --follow-import-to=pleroma --follow-import-to=timeconvert --follow-import-to=videowidget --follow-import-to=audiowidget --python-flag=-O -o plchat plchat.py +windows: + cat windows.patch > plchatwindows.py + cat plchat.py >> plchatwindows.py + makensis -VERSION || die "No makensis in path" + python3 -m nsist installer.cfg + pack: mkdir dist mv plchat dist @@ -44,8 +33,8 @@ pack: cp LICENSE dist cp COPYING dist -packdeb: - mkdir -p deb/usr/lib/plchat +deb: + mkdir -p deb/usr/lib mv dist deb/usr/lib/plchat dpkg --build deb mv deb.deb plchat.deb