File: rules

package info (click to toggle)
golang-github-bep-gowebp 0.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,660 kB
  • sloc: ansic: 76,136; sh: 1,085; makefile: 585; python: 416; cpp: 262
file content (14 lines) | stat: -rwxr-xr-x 440 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := test_data
export DH_GOLANG_EXCLUDES := gen libwebp_src/swig

# Ubuntu mangles png files by default, which can break the testdata.
export NO_PNG_PKG_MANGLE := 1

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

execute_after_dh_auto_configure:
	# Prevent "C source files not allowed when not using cgo or SWIG" error
	rm -rfv _build/src/github.com/bep/gowebp/libwebp_src/swig/*.c