#!/usr/bin/make -f
export DEB_BUILD_OPTIONS += noautodbgsym

VENDOR ?= 1
DEBUG ?= 0
DESTDIR=debian/tmp

%:
	dh $@ 

override_dh_auto_clean:
	cargo clean
	rm -Rf vendor target

override_dh_auto_build:
	just rootdir=$(DESTDIR) build-vendored

override_dh_auto_install:
	just rootdir=$(DESTDIR) install

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/pop-launcher/usr/lib/pop-launcher/scripts/**/*.sh
