debian/rules: Adapt to upstream new way of building man pages
Anthony Fok
3 years ago
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | 2 | export DH_GOLANG_INSTALL_EXTRA := fixtures/ |
3 | export PATH := obj-$(DEB_HOST_GNU_TYPE)/bin/:$(PATH) | |
4 | 3 | |
5 | 4 | %: |
6 | dh $@ --buildsystem=golang --with=golang | |
5 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang | |
7 | 6 | |
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 | |
14 | 12 | |
15 | 13 | 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 |