File: rules

package info (click to toggle)
secsipidx 1.1.1~git20210601.d388d64-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 660 kB
  • sloc: makefile: 93; ansic: 66
file content (23 lines) | stat: -rwxr-xr-x 650 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
#!/usr/bin/make -f

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

export DH_GOLANG_EXCLUDES=csecsipid
export GO111MODULE=off

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