#!/usr/bin/make -f
# -*- makefile -*-

export GO111MODULE := off
export CGO_CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -std=gnu17

ifeq ($(DEB_BUILD_ARCH),sw_64)
	export AUTO_LAUNCH_CHINESE=1
endif

ifeq ($(DEB_BUILD_ARCH),mips64el)
	export AUTO_LAUNCH_CHINESE=1
endif

%:
	dh $@ 

override_dh_auto_build:
	dh_auto_build -- GO111MODULE=off

override_dh_auto_test:
	true

override_dh_shlibdeps:
	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

ifeq ($(DEB_BUILD_ARCH),sw_64)
override_dh_strip:
	true
endif