| 1 |
#!/usr/bin/make -f |
| 2 |
# Uncomment this to turn on verbose mode. |
| 3 |
# export DH_VERBOSE=1 |
| 4 |
|
| 5 |
BUILDDIR_NORMAL = debian/build-make |
| 6 |
BUILDDIR_GUILE = debian/build-make-guile |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all qa=+bug reproducible=+all |
| 9 |
export DEB_CFLAGS_MAINT_APPEND := -Wall |
| 10 |
|
| 11 |
include /usr/share/dpkg/architecture.mk |
| 12 |
# Some test cases fail on arm64 because of GCS-related warnings |
| 13 |
ifeq ($(DEB_HOST_ARCH), arm64) |
| 14 |
export DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,gcs-report-dynamic=none |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -pmake-guile -B$(BUILDDIR_GUILE) -- --with-guile |
| 22 |
dh_auto_configure -pmake -B$(BUILDDIR_NORMAL) -- --without-guile |
| 23 |
|
| 24 |
override_dh_auto_build: |
| 25 |
dh_auto_build -pmake-guile -B$(BUILDDIR_GUILE) |
| 26 |
dh_auto_build -pmake -B$(BUILDDIR_NORMAL) |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
dh_auto_test -pmake-guile -B$(BUILDDIR_GUILE) |
| 30 |
dh_auto_test -pmake -B$(BUILDDIR_NORMAL) |
| 31 |
|
| 32 |
override_dh_auto_install: |
| 33 |
dh_auto_install -pmake-guile -B$(BUILDDIR_GUILE) --destdir=debian/make-guile |
| 34 |
dh_auto_install -pmake -B$(BUILDDIR_NORMAL) --destdir=debian/make |
| 35 |
|
| 36 |
override_dh_auto_clean: |
| 37 |
dh_auto_clean -pmake-guile -B$(BUILDDIR_GUILE) |
| 38 |
dh_auto_clean -pmake -B$(BUILDDIR_NORMAL) |
| 39 |
|
| 40 |
#Local variables: |
| 41 |
#mode: makefile |
| 42 |
#End: |