#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/default.mk export KATI_CXXFLAGS = $(CPPFLAGS) $(CXXFLAGS) %: dh $@ $(WITH_GOLANG) execute_before_dh_auto_build: debian/ckati.1 mkdir -p obj-$(DEB_HOST_GNU_TYPE)/src out [ -d obj-$(DEB_HOST_GNU_TYPE)/src/github.com ] || ln -sf /usr/share/gocode/src/github.com obj-$(DEB_HOST_GNU_TYPE)/src echo '// +build ignore' > out/version.cc echo >> out/version.cc echo 'const char* kGitVersion = "Debian";' >> out/version.cc ifeq (,$(filter nogolang,$(DEB_BUILD_PROFILES))) dh_auto_build --buildsystem=golang execute_after_dh_auto_clean: dh_auto_clean --buildsystem=golang execute_after_dh_auto_configure: dh_auto_configure --buildsystem=golang rm -rf obj-$(DEB_HOST_GNU_TYPE)/src/github.com/google/kati/testcase override_dh_dwz: -dh_dwz WITH_GOLANG = --with=golang endif %.1: %.md debian/md2man $< $@ override_dh_auto_test: -dh_auto_test