File: rules

package info (click to toggle)
php-apcu-bc 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 136 kB
  • ctags: 28
  • sloc: ansic: 197; xml: 119; makefile: 13; php: 1
file content (19 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

PECL_NAME    := apcu_bc
SOURCE_DIR   := $(shell ls -1d $(PECL_NAME)-*)
INSTALL_ROOT := $(CURDIR)/debian/php-apcu-bc

%:
	dh $@ --with php --sourcedirectory=$(SOURCE_DIR)

override_dh_auto_install:
	dh_auto_install --sourcedirectory=$(SOURCE_DIR) -- INSTALL_ROOT=$(INSTALL_ROOT)

override_dh_auto_configure:
	cd $(SOURCE_DIR) && phpize
	dh_auto_configure --sourcedirectory=$(SOURCE_DIR) -- --enable-apc

override_dh_auto_clean:
	dh_auto_clean --sourcedirectory=$(SOURCE_DIR)
	cd $(SOURCE_DIR) && phpize --clean