3 # Uncomment this to turn on verbose mode.
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23 configure: configure-stamp
30 build-stamp: configure-stamp
33 cd build;cmake ../ -DBINDINGS_INSTALL_PREFIX:PATH=/usr/lib;$(MAKE)
40 rm -f configure-stamp build-stamp
41 [ ! -f Makefile ] || $(MAKE) distclean
49 # Add here commands to install the package into debian/tmp
50 cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
51 # Move all files in their corresponding package
52 dh_install --list-missing -s --sourcedir=debian/tmp
53 # empty dependency_libs in .la files
54 #sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
56 # Build architecture-independent files here.
57 binary-indep: build install
58 # We have nothing to do by default.
60 # Build architecture-dependent files here.
61 binary-arch: build install
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install