opensnitch/ui/Makefile
petterreinholdtsen 45aa9b6458
Correct Debian build and add github CI check for it. (#809)
* Improve name of github CI Go build.

* Unify debian build rules to build both binary debs from same rule set

Added missing build dependency for qttools5-dev-tools.

Note, the install of bpf module is removed because its build rules are not
currently used.  This should be fixed.

The build fail because the build uses go build rules and not the
makefile, and thus the protocol files are not generated in the correct
location.

Added github CI build test for Debian package.  Note, this build include a
workaround for the lack of upstream tarball.  Might be better to create
a tarball from the current source directory first, but then debian/changelog
need to be updated with a version entry for this tarball too.

* Bring Debian package installation more in line with general practice

Bo need to use pip for installing packages, the packages needed are
in Debian Bookworm and Sid.  Drop debconf question regarding this and the
dependency on pip.

Stop writing in users home directory, activate autorun using
/etc/xdg/autorun/ instead.
2023-01-21 10:17:07 +01:00

17 lines
361 B
Makefile

all: opensnitch/resources_rc.py
install:
opensnitch/resources_rc.py: translations # deps
@pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
translations:
@$(MAKE) -C i18n
deps:
@pip3 install -r requirements.txt
clean:
@rm -rf *.pyc
@rm -rf opensnitch/resources_rc.py