File: rules

package info (click to toggle)
sass-spec 3.6.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 22,980 kB
  • sloc: ruby: 1,620; perl: 428; sh: 96; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

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

DH_OPTIONS = -O--buildsystem=ruby

cmd = sass-spec

# generate manpages based on --help of script itself
_mkman = RUBYLIB=lib help2man \
 $(if $4,--version-string "$(strip $4)") $(if $3,--name "$(strip $3)") \
 --no-info --output $2 $1 \
 || { RUBYLIB=lib $1 --help; false; }

override_dh_auto_build:
	dh_auto_build
	cp -f $(cmd).rb $(cmd)
	chmod +x $(cmd)
	$(call _mkman, ./$(cmd), debian/$(cmd).1, \
		sass-spec testsuite for Sass implementions, \
		$(DEB_VERSION_UPSTREAM))

%:
	dh $@ --with ruby $(DH_OPTIONS:-O%=%)