| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
REDIS = $(shell [ -e /usr/bin/redis-server ] && echo 1 || echo 0) |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 6 |
DPKG_EXPORT_BUILDFLAGS=1 |
| 7 |
|
| 8 |
include /usr/share/dpkg/default.mk |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
dh_auto_build -- DEBUG="-g" ARCH= USE_SSL=1 |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
dh_auto_install -- LIBRARY_PATH="lib/$(DEB_HOST_MULTIARCH)" \ |
| 18 |
PREFIX=/usr USE_SSL=1 |
| 19 |
|
| 20 |
execute_after_dh_fixperms: |
| 21 |
chmod 644 debian/libhiredis-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*.pc |
| 22 |
chmod 644 debian/libhiredis-dev/usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Hiredis/*.cmake |
| 23 |
|
| 24 |
override_dh_installchangelogs: |
| 25 |
dh_installchangelogs CHANGELOG.md |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 29 |
ifeq ($(REDIS), 1) |
| 30 |
-make check || [ "$(DEB_BUILD_ARCH_OS)" = "mipsel64" ] |
| 31 |
endif |
| 32 |
endif |