File: rules

package info (click to toggle)
gash 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 924 kB
  • sloc: lisp: 6,226; makefile: 267; sh: 133
file content (32 lines) | stat: -rwxr-xr-x 791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk # DEB_VERSION

%:
	dh $@

# https://bugs.debian.org/1123387
override_dh_auto_test:
	dh_auto_test $(DH_BUILD_OPTS) -- \
		UNIT_TESTS="tests/unit/eval.scm tests/unit/lexer.scm tests/unit/parser.scm tests/unit/shell.scm tests/unit/word.scm"
	-dh_auto_test $(DH_BUILD_OPTS) -- \
		TESTS="tests/unit/pattern.scm"

override_dh_dwz:
	dh_dwz --exclude=.go

override_dh_shlibdeps:
	dh_shlibdeps --exclude=.go

B = $(CURDIR)/debian/gash/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man/man1

ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
execute_before_dh_installman-arch:
	mkdir -pv $(M)
	help2man --version-string="$(DEB_VERSION)" \
		--no-info \
		--name="Guile As SHell, a POSIX-compatible shell" \
		--output $(M)/gash.1 \
		$(B)/gash
endif