2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 # Force compat level four
12 build-stamp: build-yaz/configure
15 # Add here commands to compile the package.
16 cd build-yaz; ./configure --with-yaz=/usr/bin
21 build-yaz/configure: config.m4
23 cp config.m4 debian/yaz.ini Makefile.in php_yaz.[ch] build-yaz
24 cd build-yaz; /usr/bin/phpize
39 -mkdirhier "debian/tmp`/usr/bin/php-config --extension-dir`"
40 cd build-yaz; $(MAKE) EXTENSION_DIR="../debian/tmp`/usr/bin/php-config --extension-dir`" install
41 mkdir -p debian/tmp/etc/php5/conf.d
42 cp debian/yaz.ini debian/tmp/etc/php5/conf.d/yaz.ini
44 # Build architecture-independent files here.
45 binary-indep: build install
46 # We have nothing to do by default.
48 # Build architecture-dependent files here.
49 binary-arch: build install
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install