File: rules

package info (click to toggle)
secsipidx 1.3.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: makefile: 94; ansic: 73
file content (25 lines) | stat: -rwxr-xr-x 741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DH_GOLANG_EXCLUDES=csecsipid
export GO111MODVAL=off
# don't fail on test when certificates are signed with the SHA-1
export GODEBUG=x509sha1=1

D = $(CURDIR)/debian/tmp
B = _build/src/github.com/asipto/secsipidx/

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

execute_after_dh_auto_build:
	cp Makefile Makefile.defs $(B)
	cp csecsipid/Makefile csecsipid/*.pc $(B)/csecsipid/
	GOCACHE=$(CURDIR)/_build/go-build GOPATH=$(CURDIR)/_build $(MAKE) -C $(B) lib

override_dh_auto_install:
	dh_auto_install -- --no-source
	$(MAKE) -C $(B) PREFIX=/usr DESTDIR=$(D) install-dirs
	$(MAKE) -C $(B) PREFIX=/usr DESTDIR=$(D) install-lib-all