File: rules

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

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

execute_before_dh_auto_test:
	cp -a test/images test/keys $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/src/github.com/apptainer/sif/test

override_dh_install:
	dh_install
	rm -rf debian/*/usr/bin/images
	rm -rf debian/*/usr/bin/keys
	rm -rf debian/*/usr/bin/siftool # this might be an alternative for the siftool package
	rm -rf debian/*/usr/bin/test # this is nonsense and should not be installed
	rm -rf debian/*/usr/share/gocode/src/github.com/apptainer/sif/test/images
	find debian/*/usr -type d -name testdata -print0 | xargs -0r rm -r