| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
|
| 6 |
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION)) |
| 7 |
|
| 8 |
|
| 9 |
export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(EXP_RELEASE),0,1) |
| 10 |
|
| 11 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 12 |
|
| 13 |
|
| 14 |
UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d+ -f1) |
| 15 |
|
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --no-parallel |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- \ |
| 22 |
-DINSTALL_HTML_DOC=ON \ |
| 23 |
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/editorconfig-doc \ |
| 24 |
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON |
| 25 |
|
| 26 |
|
| 27 |
execute_after_dh_shlibdeps: |
| 28 |
d-devlibdeps \ |
| 29 |
--override s/libeditorconfig0-dev/libeditorconfig-dev/ \ |
| 30 |
debian/libeditorconfig-dev.substvars \ |
| 31 |
debian/tmp/usr/lib/*/*.so |
| 32 |
|
| 33 |
execute_after_dh_link: |
| 34 |
dh_link -peditorconfig usr/share/man/man1/editorconfig.1.gz usr/share/man/man1/editorconfig-$(UPSTREAM_VERSION).gz |