| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
# export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 8 |
include /usr/share/dpkg/default.mk |
| 9 |
include /usr/share/debhelper/dh_package_notes/package-notes.mk |
| 10 |
|
| 11 |
%: |
| 12 |
dh "${@}" --buildsystem=cmake --with=python3 |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
dh_auto_configure --sourcedirectory=libcomps/ --builddirectory=build -- \ |
| 16 |
-DLIB_INST_DIR:PATH="/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" |
| 17 |
|
| 18 |
override_dh_auto_build: |
| 19 |
dh_auto_build --builddirectory=build -- all docs pydocs |
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
dh_auto_install --builddirectory=build |
| 23 |
|
| 24 |
# Drop XML files, not needed |
| 25 |
rm -rf build/docs/libcomps-doc/xml |
| 26 |
|
| 27 |
# Remove doctree files (redundant, conflicts with reproducible builds) |
| 28 |
rm -rfv 'build/src/python/docs/html/.doctrees' 'build/docs/libcomps-doc/html/.doctrees' |
| 29 |
|
| 30 |
# Use system-provided files. |
| 31 |
rm -fv 'build/src/python/docs/html/_static/jquery.js' \ |
| 32 |
'build/src/python/docs/html/_static/underscore.js' \ |
| 33 |
'build/docs/libcomps-doc/jquery.js' \ |
| 34 |
'build/src/python/docs/html/_static/doctools.js' \ |
| 35 |
'build/src/python/docs/html/_static/language_data.js' \ |
| 36 |
'build/src/python/docs/html/_static/searchtools.js' |
| 37 |
|
| 38 |
override_dh_auto_clean: |
| 39 |
dh_auto_clean --builddirectory=build |
| 40 |
|
| 41 |
override_dh_auto_test: |
| 42 |
dh_auto_test --builddirectory=build |