File: rules

package info (click to toggle)
sassphp 0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 348 kB
  • sloc: ansic: 741; xml: 129; php: 81; makefile: 15; sh: 12
file content (21 lines) | stat: -rwxr-xr-x 652 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
export REPORT_EXIT_STATUS:=0
PECL_NAME_OVERRIDE := sass
DH_PHP_VERSIONS_OVERRIDE := $(shell /usr/sbin/phpquery -V)
include /usr/share/dh-php/pkg-pecl.mk

DIR_TARGETS = $(addprefix build-,$(DH_PHP_VERSIONS))

$(warning CONFIGURE_TARGETS: $(CONFIGURE_TARGETS))
$(warning BUILD_TARGETS: $(BUILD_TARGETS))
$(warning INSTALL_TARGETS: $(INSTALL_TARGETS))

PECL_SOURCE=$(filter-out debian $(DIR_TARGETS),$(wildcard *))
$(foreach ver,$(DH_PHP_VERSIONS),$(eval PECL_SOURCE_$(ver) := $(PECL_SOURCE)))
$(foreach ver,$(DH_PHP_VERSIONS),$(shell mkdir build-$(ver)))

override_dh_testdir: $(DIR_TARGETS)
	dh_testdir

build-%:
	mkdir -p build-$(*)