cosmic-applets/debian/rules
Ian Douglas Scott 061a891c5e Update everything to gtk-rs git, relm4 next
Now everything is in one workspace again. Hopefully this also builds on
CI.
2022-06-29 13:58:29 -07:00

30 lines
632 B
Makefile
Executable file

#!/usr/bin/make -f
DESTDIR = debian/cosmic-applets
CLEAN ?= 1
VENDOR ?= 1
%:
dh $@
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
override_dh_auto_clean:
if test "${CLEAN}" = "1"; then \
cargo clean; \
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor --sync Cargo.toml | head -n -1 > .cargo/config; \
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
override_dh_auto_build:
just rootdir=$(DESTDIR) debug=$(DEBUG) vendor=$(VENDOR)
override_dh_auto_install:
just rootdir=$(DESTDIR) install