File: rules

package info (click to toggle)
nextcloud-spreed-signaling 0.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,192 kB
  • sloc: makefile: 115; python: 61; sh: 57
file content (26 lines) | stat: -rwxr-xr-x 721 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
26
#!/usr/bin/make -f

export GOCACHE = /tmp/gocache
export GOPATH = ${CURDIR}/_build:/usr/share/gocode
export GO111MODULE := off
BUILD_DIR := ${CURDIR}/_build/src/github.com/strukturag/nextcloud-spreed-signaling

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

override_dh_auto_build:
	cd ${BUILD_DIR} && \
	easyjson -all api_signaling.go && \
	easyjson -all api_backend.go && \
	easyjson -all api_proxy.go && \
	easyjson -all natsclient.go && \
	easyjson -all room.go
	dh_auto_build

override_dh_auto_install:
	dh_auto_install -- --no-source
	cd debian/nextcloud-spreed-signaling/usr/bin; for f in client proxy server; do \
	    mv $$f nextcloud-spreed-signaling-$$f; \
	done

override_dh_auto_test: