Codebase list hub / 5c5c111
debian/rules: Adapt to upstream new way of building man pages Anthony Fok 3 years ago
1 changed file(s) with 7 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/make -f
11
22 export DH_GOLANG_INSTALL_EXTRA := fixtures/
3 export PATH := obj-$(DEB_HOST_GNU_TYPE)/bin/:$(PATH)
43
54 %:
6 dh $@ --buildsystem=golang --with=golang
5 dh $@ --builddirectory=_build --buildsystem=golang --with=golang
76
8 override_dh_auto_build:
9 dh_auto_build -O--buildsystem=golang
10 LC_ALL=C.UTF-8 make man-pages
11
12 override_dh_auto_clean:
13 dh_auto_clean -O--buildsystem=golang
7 execute_after_dh_auto_build:
8 mkdir -p bin
9 cp -av _build/bin/hub bin/hub
10 mv -v _build/bin/md2roff-bin bin/md2roff
11 $(MAKE) man-pages
1412
1513 override_dh_auto_install:
16 dh_auto_install -O--buildsystem=golang -- --no-source
17
18 override_dh_fixperms:
19 dh_fixperms -O--buildsystem=golang
20 # See https://github.com/github/hub/pull/1782
21 chmod -x debian/hub/usr/share/*sh*/*completion*/*hub
14 dh_auto_install -- --no-source