File: rules

package info (click to toggle)
php-klogger 1.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 172 kB
  • sloc: php: 239; xml: 18; makefile: 16; sh: 1
file content (21 lines) | stat: -rwxr-xr-x 442 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 DH_VERBOSE = 1

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab	--output src/autoload.php \
		--template debian/autoload.php.tpl \
		src/Logger.php

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	phpunit --bootstrap src/Logger.php
else
	@echo "** tests disabled"
endif

override_dh_install:
	dh_install
	chmod -x debian/php-klogger/usr/share/php/Katzgrau/KLogger/Logger.php