libcosmic/debian/rules

24 lines
654 B
Text
Raw Normal View History

2023-09-13 15:19:58 +02:00
#!/usr/bin/make -f
export DESTDIR = debian/tmp
export VENDOR ?= 1
%:
dh $@
override_dh_auto_clean:
if ! ischroot && test "${VENDOR}" = "1"; then \
rm -rf .cargo vendor vendor.tar; \
mkdir -p .cargo; \
cargo vendor --sync examples/design-demo/Cargo.toml | head -n -1 > .cargo/config; \
2023-09-13 15:19:58 +02:00
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
override_dh_auto_build:
just --unstable --working-directory . --justfile examples/design-demo/justfile build-vendored
2023-09-13 15:19:58 +02:00
override_dh_auto_install:
just --unstable --working-directory . --justfile examples/design-demo/justfile rootdir=$(DESTDIR) install