53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
ifeq ($(PREFIX),)
|
|
PREFIX := /usr/local/
|
|
endif
|
|
ifeq ($(LIBDIR),)
|
|
LIBDIR := lib/
|
|
endif
|
|
|
|
|
|
all: default pack
|
|
|
|
systemlibs: systemlibtarget pack
|
|
|
|
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
|
|
|
|
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
|
|
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
|
|
|
|
dpkg:
|
|
mkdir -p deb/usr/lib
|
|
mv dist deb/usr/lib/plchat
|
|
dpkg --build deb
|
|
mv deb.deb plchat.deb
|
|
|
|
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
|