File: rules

package info (click to toggle)
wikidiff2 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,764 kB
  • sloc: cpp: 2,180; php: 374; makefile: 14; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# The PHP header files are not designed to be run with C++, they hit this
# warning a lot.
CXXFLAGS+=-Wno-write-strings

# Environment for `make test`
export NO_INTERACTION=1
export REPORT_EXIT_STATUS=1

%:
	dh $@ --with php

override_dh_auto_configure:
	/usr/bin/phpize
	dh_auto_configure

override_dh_auto_install:
	INSTALL_ROOT=$(CURDIR)/debian/php-wikidiff2 make install

override_dh_auto_clean:
	/usr/bin/phpize --clean
	dh_auto_clean