#!/usr/bin/make -f

export DESTDIR = debian/cosmic-store
export VENDOR ?= 1

%:
	dh $@

override_dh_auto_clean:
	#if ! ischroot && test "${VENDOR}" = "1"; then \
	#	just vendor; \
	#fi
	cargo clean;

override_dh_auto_build:
	just build-vendored

override_dh_auto_install:
	just rootdir=$(DESTDIR) install
