File: rules

package info (click to toggle)
php-pimple 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 324 kB
  • ctags: 220
  • sloc: ansic: 862; php: 493; makefile: 17
file content (30 lines) | stat: -rwxr-xr-x 825 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
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer -XTests

override_dh_auto_build:
	phpab --output src/Pimple/autoload.php --blacklist 'pimple\\tests\\*'  src/Pimple
	mkdir --parents vendor
	phpab --output vendor/autoload.php --basedir vendor src/Pimple
#	dh_auto_build -O--sourcedirectory=ext/pimple

override_dh_auto_clean:
	rm -rf \
		ext/pimple/build \
		vendor
	dh_auto_clean -O--sourcedirectory=ext/pimple

#override_dh_auto_configure:
#	cd ext/pimple && phpize
#	dh_auto_configure -O--sourcedirectory=ext/pimple

#override_dh_auto_install:
#	dh_auto_install -O--sourcedirectory=ext/pimple -- INSTALL_ROOT=$(CURDIR)/debian/php5-pimple

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
#	NO_INTERACTION=1 dh_auto_test -O--sourcedirectory=ext/pimple
	phpunit
else
	@echo "** tests disabled"
endif