File: rules

package info (click to toggle)
ruby-sass 3.7.4-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,784 kB
  • sloc: ruby: 32,443; sh: 26; makefile: 25
file content (34 lines) | stat: -rwxr-xr-x 1,021 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
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

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

%:
	dh $@ --buildsystem=ruby --with ruby

# generate manpage based on --help option of executable
_mkman = RUBYLIB=lib \
 help2man $(if $3,--name "$(strip $3)") --no-info --output $2 $1 \
 || { RUBYLIB=lib $1 --help; false; }

override_dh_auto_build:
	echo $(DEB_VERSION_UPSTREAM) > VERSION
	dh_auto_build
	$(call _mkman,build/sassc,debian/sassc.1, \
		Sass compiles CSS from SASS or SCSS files)

override_dh_auto_build:
	dh_auto_build
	cp -t lib/sass VERSION VERSION_NAME
	chmod +x bin/sass bin/sass-convert bin/scss
	$(call _mkman,bin/sass,debian/sass.1, \
		Sass compiles CSS from SASS files)
	$(call _mkman,bin/sass-convert,debian/sass-convert.1, \
		sass-convert converts files between CSS, SASS, and SCSS)
	$(call _mkman,bin/scss,debian/scss.1, \
		Scss compiles CSS from SCSS (Sassy CSS) files)

override_dh_installchangelogs:
	dh_installchangelogs doc-src/SASS_CHANGELOG.md