| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk # DEB_VERSION |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=debian/_build |
| 7 |
|
| 8 |
# https://bugs.debian.org/1123387 |
| 9 |
override_dh_auto_test: |
| 10 |
dh_auto_test $(DH_BUILD_OPTS) -- \ |
| 11 |
UNIT_TESTS="tests/unit/eval.scm tests/unit/lexer.scm tests/unit/parser.scm tests/unit/shell.scm tests/unit/word.scm" |
| 12 |
-dh_auto_test $(DH_BUILD_OPTS) -- \ |
| 13 |
TESTS="tests/unit/pattern.scm" |
| 14 |
|
| 15 |
override_dh_dwz: |
| 16 |
dh_dwz --exclude=.go |
| 17 |
|
| 18 |
override_dh_shlibdeps: |
| 19 |
dh_shlibdeps --exclude=.go |
| 20 |
|
| 21 |
B = $(CURDIR)/debian/gash/usr/bin |
| 22 |
M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 23 |
|
| 24 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 25 |
execute_before_dh_installman-arch: |
| 26 |
mkdir -pv $(M) |
| 27 |
env GUILE_LOAD_PATH=debian/_build \ |
| 28 |
help2man --version-string="$(DEB_VERSION)" \ |
| 29 |
--no-info \ |
| 30 |
--name="Guile As SHell, a POSIX-compatible shell" \ |
| 31 |
--output $(M)/gash.1 \ |
| 32 |
$(B)/gash |
| 33 |
endif |