-# Local library path for linking with right dependencies
-LOCAL_LINK=-ldebian/libyaz/usr/lib
-
-$(YAZSRCDIR)/configure: $(YAZSRCDIR)/configure.in
- cd $(YAZSRCDIR); sh buildconf.sh
-
-stamp-configure: $(YAZSRCDIR)/configure
- dh_testdir
-
- -rm -rf build
- mkdir build
- cd build; $(YAZSRCDIR)/configure $(CONFIG_FLAGS)
- touch stamp-configure
-
-build: stamp-build
-stamp-build: stamp-configure
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE) -C build $(MCFLAGS)
-
- touch stamp-build
-
-clean:
- dh_testdir
- #dh_testroot
- -rm -f stamp-*
- -rm -rf build
-
- dh_clean
- -rm -rf debian/libyaz debian/libyaz-dev \
- debian/*.debhelper debian/substvars debian/shlibs.yaz-*
-
-install: stamp-install
-stamp-install: stamp-build
- dh_testdir
- dh_testroot
- dh_clean -k -a
- dh_installdirs -a
-
- # Add here commands to install the package into debian/tmp.
- -mkdirhier debian/tmp/usr
- $(MAKE) -C build install prefix=`pwd`/debian/tmp/usr
-
- touch stamp-install
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdocs -p yaz-doc doc/*.html doc/*.pdf doc/*.png
- dh_installchangelogs -p yaz-doc
- dh_link -p yaz-doc
- dh_strip -p yaz-doc
- dh_compress -p yaz-doc
- dh_fixperms -p yaz-doc
- dh_gencontrol -p yaz-doc
- dh_md5sums -p yaz-doc
-
- dh_builddeb -p yaz-doc
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_movefiles -p libyaz-dev usr/share/aclocal usr/lib/*.a usr/lib/*.la usr/lib/*.so usr/include usr/bin/yaz-config usr/bin/yaz-asncomp usr/share/yaz/ill usr/share/yaz/z39.50
- dh_movefiles -p yaz usr/bin
- dh_movefiles -p libyaz usr/lib usr/share/yaz/etc
- dh_installexamples -p libyaz-dev