File: rules

package info (click to toggle)
golang-oras-oras-go 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 884 kB
  • sloc: makefile: 51; sh: 43
file content (16 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := examples

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

execute_after_dh_fixperms:
	find debian/*/usr/share/gocode/src/oras.land/oras-go -type f -executable -exec chmod -x \{\} \;

execute_before_dh_auto_test:
	# do the same as scripts/test.sh
	mkdir -p _build/src/oras.land/oras-go/.test

execute_after_dh_auto_test:
	rm -rf _build/src/oras.land/oras-go/.test