cosmic-applets/debian/rules

31 lines
570 B
Text
Raw Permalink Normal View History

2022-05-25 17:11:42 -04:00
#!/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; \
2022-05-25 17:11:42 -04:00
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
just vendor; \
2022-05-25 17:11:42 -04:00
fi
override_dh_auto_build:
if test "${VENDOR}" = "1"; then \
just rootdir=$(DESTDIR) debug=$(DEBUG) build-vendored; \
else \
just rootdir=$(DESTDIR) debug=$(DEBUG) build-release; \
fi
2022-05-25 17:11:42 -04:00
override_dh_auto_install:
just rootdir=$(DESTDIR) install