Rev 68 | Rev 71 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/make -fSOURCE_PACKAGE = libspf2LIB_PACKAGE = libspf2-2DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))buildflags := --build=$(DEB_BUILD_GNU_TYPE)elsebuildflags := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)endifDEB_LDFLAGS_MAINT_APPEND = -Wl,--version-script=$(CURDIR)/debian/libspf2.verbuildflags += $(shell DEB_LDFLAGS_MAINT_APPEND="$(DEB_LDFLAGS_MAINT_APPEND)" \dpkg-buildflags --export=configure)config.status: configuredh_testdir# Add here commands to configure the package.dh_autotools-dev_updateconfig./configure --enable-perl --prefix=/usr $(buildflags)build: build-archbuild-indep:build-arch: build-arch-stampbuild-arch-stamp: config.statusdh_testdir$(MAKE)touch "$@"clean:dh_testdirdh_testrootrm -f build-arch-stamp[ ! -f Makefile ] || $(MAKE) distcleandh_autotools-dev_restoreconfigdh_cleaninstall: build-archdh_testdirdh_testrootdh_prep$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp INSTALLDIRS=vendorbinary-arch: installdh_testdirdh_testrootdh_install -a# Rename the `spfquery` tool for the alternatives system:mv debian/spfquery/usr/bin/spfquery debian/spfquery/usr/bin/spfquery.$(SOURCE_PACKAGE)mv debian/spfquery/usr/sbin/spfd debian/spfquery/usr/sbin/spfd.$(SOURCE_PACKAGE)dh_installdocs -a --link-doc=$(LIB_PACKAGE)dh_installchangelogs -adh_installman -adh_strip -a --dbg-package=$(LIB_PACKAGE)-dbgdh_perl -adh_compress -adh_fixperms -adh_makeshlibs -V '$(LIB_PACKAGE) (>= 1.2.10)'dh_installdeb -adh_shlibdeps -adh_gencontrol -adh_md5sums -adh_builddeb -abinary: binary-archget-orig-source:wget http://www.libspf2.org/spf/libspf2-1.2.9.tar.gz.PHONY: build build-indep build-arch clean clean-patched binary-indep binary-arch binary install get-orig-source