File: rules

package info (click to toggle)
sassc 3.6.1%2B20201027-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 264 kB
  • sloc: ansic: 773; makefile: 229; sh: 157
file content (17 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

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

%:
	dh $@ --builddirectory=build

execute_before_dh_auto_build:
	echo $(DEB_VERSION_UPSTREAM) > VERSION

execute_after_dh_auto_build:
	$(call _mkman,build/sassc,debian/sassc.1, \
		Sass compiles CSS from SASS or SCSS files)