| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export CONFIG_SHELL=/bin/bash |
| 6 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all |
| 7 |
|
| 8 |
DH_OPTS := --parallel --with python3 --builddirectory build |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ $(DH_OPTS) |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo |
| 15 |
|
| 16 |
nox: |
| 17 |
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_GUI=no |
| 18 |
dh_auto_build |
| 19 |
dh_auto_install --destdir debian/nox |
| 20 |
mv debian/nox/usr/bin/* debian/fontforge-nox/usr/bin/ |
| 21 |
|
| 22 |
override_dh_strip: nox |
| 23 |
dh_strip --dbg-package=fontforge-dbg |
| 24 |
|
| 25 |
override_dh_clean: |
| 26 |
dh_clean |
| 27 |
rm -rf debian/nox |