30 lines
570 B
Makefile
Executable file
30 lines
570 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 \
|
|
just vendor; \
|
|
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
|
|
|
|
override_dh_auto_install:
|
|
just rootdir=$(DESTDIR) install
|