File: rules

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

BUILDDIR := _build/src/mvdan.cc/editorconfig

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

# The test suite needs a git submodule that has been copied to debian/core-test
# see: https://github.com/editorconfig/editorconfig-core-test
execute_before_dh_auto_test:
	cp -a debian/core-test/ $(BUILDDIR)
	cp CMakeLists.txt $(BUILDDIR)
	cp -r _sample/ $(BUILDDIR)

execute_after_dh_auto_test:
	find $(BUILDDIR) -name core-test -o -name CMakeLists.txt -o -name _sample | xargs rm -rf