File: rules

package info (click to toggle)
golang-github-opencontainers-image-spec 1.0.0~rc2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 532 kB
  • ctags: 185
  • sloc: makefile: 126
file content (18 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

#export DH_GOLANG_INSTALL_ALL := 1
#export DH_GOLANG_INSTALL_EXTRA = schema

MANPAGES := $(patsubst %.md, %, $(wildcard cmd/oci-image-tool/man/*.md))

$(MANPAGES):
	go-md2man --in $(patsubst %,%.md, $@) --out $@

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

override_dh_clean:
	dh_clean $(MANPAGES)

override_dh_auto_install: $(MANPAGES)
	dh_auto_install