File: rules

package info (click to toggle)
ruby-sass 3.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,668 kB
  • sloc: ruby: 32,237; sh: 22; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 614 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
#!/usr/bin/make -f

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

# generate manpages based on --help of script itself
_ruby2man = RUBYLIB=lib help2man \
 --name "Sass compiles CSS from SASS or SCSS files" \
 --no-info --output=$2 $1 \
 || { RUBYLIB=lib $1 --help; false; }

override_dh_auto_build:
	dh_auto_build
	cp -t lib/sass VERSION VERSION_NAME
	chmod +x bin/sass bin/sass-convert bin/scss
	$(call _ruby2man,bin/sass,debian/sass.1)
	$(call _ruby2man,bin/sass-convert,debian/sass-convert.1)
	$(call _ruby2man,bin/scss,debian/scss.1)

override_dh_installchangelogs:
	dh_installchangelogs doc-src/SASS_CHANGELOG.md