tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
+tcl_versions= 8.5 8.6 8.7
+
+march := $(shell dpkg-architecture -q DEB_HOST_MULTIARCH)
+libsubdir = /$(march)
+
garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
ifneq ($(garch),)
-libsubdir = /$(garch)
-
ifeq ($(origin CC),default)
export CC=$(garch)-gcc
endif
$(checkdir)
dh_testroot
+debian/tests/control: debian/regenerate-autopkgtests debian/rules
+ $(MAKE) debian-substvars
+ $< $(tcl_versions)
+
.PHONY: binary binary-arch binary-indep clean checkroot