File: rules

package info (click to toggle)
ruby-sass 3.7.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,676 kB
  • sloc: ruby: 32,434; sh: 30; makefile: 23
file content (31 lines) | stat: -rwxr-xr-x 925 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
#!/usr/bin/make -f

export DH_OPTIONS = -O--buildsystem=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

%:
	dh $@ --with ruby