| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 5 |
|
| 6 |
BUILD_DOC = $(if $(filter davix-doc,$(shell dh_listpackages)),TRUE,FALSE) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
# Remove bundled stuff |
| 13 |
rm -rf deps/curl |
| 14 |
rm -rf src/libs/rapidjson |
| 15 |
rm -rf test/pywebdav |
| 16 |
rm -rf doc/sphinx/_themes/sphinx_rtd_theme |
| 17 |
dh_auto_configure -- -DLIB_SUFFIX:PATH="/$(DEB_HOST_MULTIARCH)" \ |
| 18 |
-DEMBEDDED_LIBCURL:BOOL=FALSE \ |
| 19 |
-DEMBEDDED_RAPIDJSON:BOOL=FALSE \ |
| 20 |
-DENABLE_HTML_DOCS:BOOL=$(BUILD_DOC) \ |
| 21 |
-DENABLE_THIRD_PARTY_COPY:BOOL=TRUE |
| 22 |
|
| 23 |
override_dh_auto_build: |
| 24 |
dh_auto_build |
| 25 |
[ "$(BUILD_DOC)" = "FALSE" ] || ( dh_auto_build -- doc && ( \ |
| 26 |
cd obj-$(DEB_HOST_GNU_TYPE)/doc ; \ |
| 27 |
sphinx-build -q -b html ../../doc/sphinx build/html ) ) |
| 28 |
|
| 29 |
override_dh_auto_install: |
| 30 |
dh_auto_install |
| 31 |
rm debian/tmp/usr/share/doc/davix/LICENSE |
| 32 |
|
| 33 |
override_dh_auto_test: |
| 34 |
dh_auto_test -- ARGS+="-V -T Test" |