File: rules

package info (click to toggle)
golang-github-jung-kurt-gofpdf 2.17.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,368 kB
  • sloc: makefile: 51; awk: 7
file content (16 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := list makefont internal/files/bin
export DH_GOLANG_INSTALL_EXTRA := $(wildcard image/* font/* text/*) pdf/reference LICENSE

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# check whether Nilesh's patch had worked and internal/files is excluded:
	find . -name fpdf_test.go -exec grep -H 'internal/files' \{\} \;
	# Try to copy everything to build dir
	cp -a internal/files _build/src/github.com/jung-kurt/gofpdf/internal
	dh_auto_test
endif