#!/usr/bin/make -f

# Plain `dh` invocation; every override below delegates the actual work
# to the top-level Makefile so the build / install logic is single-
# sourced for both packagers and the `make install PREFIX=$$prefix`
# convention from the README.

%:
	dh $@

override_dh_auto_build:
	$(MAKE) all

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/xdg-desktop-portal-crustace PREFIX=/usr

override_dh_auto_clean:
	$(MAKE) clean
	dh_clean

# The crate's `cargo test` only exercises pure-fn code today; expose
# it via `make test` once such tests exist. Disabled here so packaging
# does not pull network dependencies during a sandboxed Debian build.
override_dh_auto_test:
