#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 autoconfigure: debian/autoconfigure-stamp debian/autoconfigure-stamp: debian/control dh_testdir [ -r scripts/config.sub.orig ] || \ cp -f scripts/config.sub scripts/config.sub.orig [ -r scripts/config.guess.orig ] || \ cp -f scripts/config.guess scripts/config.guess.orig [ ! -r /usr/share/misc/config.sub ] || \ cp -f /usr/share/misc/config.sub scripts/config.sub [ ! -r /usr/share/misc/config.guess ] || \ cp -f /usr/share/misc/config.guess scripts/config.guess mkdir debian/build-9.0; \ cd debian/build-9.0; \ CFLAGS="$(CFLAGS)" ../../configure \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/share \ --localstatedir=/var --mandir=\$${prefix}/share/man \ --disable-extension \ PG_CONFIG=/usr/lib/postgresql/9.0/bin/pg_config mkdir debian/build-9.1; \ cd debian/build-9.1; \ CFLAGS="$(CFLAGS)" ../../configure \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/share \ --localstatedir=/var --mandir=\$${prefix}/share/man \ --enable-extension \ PG_CONFIG=/usr/lib/postgresql/9.1/bin/pg_config touch $@ build: debian/build-stamp debian/build-stamp: debian/autoconfigure-stamp dh_testdir cd debian/build-9.0; \ $(MAKE) all cd debian/build-9.1; \ $(MAKE) all touch debian/build-stamp clean: dh_testdir dh_testroot rm -rf debian/install-stamp debian/install-9.0 rm -rf debian/build-stamp debian/build-9.0 rm -rf debian/install-stamp debian/install-9.1 rm -rf debian/build-stamp debian/build-9.1 rm -f debian/autoconfigure-stamp [ ! -r scripts/config.guess.orig ] || \ mv -f scripts/config.guess.orig scripts/config.guess || : [ ! -r scripts/config.sub.orig ] || \ mv -f scripts/config.sub.orig scripts/config.sub || : dh_clean install: install-indep install-arch install-indep: $(MAKE) -f debian/rules DH_OPTIONS=-i install-common install-arch: $(MAKE) -f debian/rules DH_OPTIONS=-s install-common install-common: debian/install-stamp dh_testdir dh_testroot dh_prep dh_installdirs dh_install debian/install-stamp: build debian/control cd debian/build-9.0; \ $(MAKE) DESTDIR=$(CURDIR)/debian/install-9.0 install cd debian/build-9.1; \ $(MAKE) DESTDIR=$(CURDIR)/debian/install-9.1 install touch $@ # Build architecture-independent files here. binary-indep: build install # dh_testdir -i # dh_testroot -i # dh_installchangelogs -i ChangeLog # dh_installdocs -i # dh_installexamples -i # dh_installman -i # dh_perl -i # dh_link -i # dh_compress -i # dh_fixperms -i # dh_installdeb -i # dh_gencontrol -i # dh_md5sums -i # dh_builddeb -i # Build architecture-dependent files here. binary-arch: build install dh_testdir -a dh_testroot -a dh_installchangelogs -a ChangeLog dh_installdocs -a dh_installexamples -a dh_installman -a dh_link -a dh_strip -a dh_compress -a dh_fixperms -a dh_makeshlibs -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install