| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 5 |
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic |
| 6 |
|
| 7 |
# trust upstream optimization level unless explicitly disabled |
| 8 |
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
| 9 |
export DEB_CFLAGS_MAINT_STRIP=-O2 |
| 10 |
export DEB_CXXFLAGS_MAINT_STRIP=-O2 |
| 11 |
endif |
| 12 |
|
| 13 |
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) |
| 14 |
export CARGO_TERM_VERBOSE = true |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
execute_after_dh_auto_configure: |
| 21 |
mkdir -p debian/build |
| 22 |
ln --symbolic --force ../cargo_home debian/build/cargo-home |
| 23 |
dh_auto_configure --buildsystem=meson+ninja --builddirectory=debian/build |
| 24 |
|
| 25 |
override_dh_auto_build: |
| 26 |
dh_auto_build --buildsystem=meson+ninja --builddirectory=debian/build |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
dh_auto_test --buildsystem=meson+ninja --builddirectory=debian/build |
| 30 |
|
| 31 |
override_dh_auto_install: |
| 32 |
dh_auto_install --buildsystem=meson+ninja --builddirectory=debian/build --destdir=debian/helvum/ |