#!/usr/bin/make -f # -*- makefile -*- -include /usr/share/dpkg/buildflags.mk name = globus-ftp-client _name = globus_ftp_client INSTALLDIR = $(CURDIR)/debian/tmp _prefix = /usr _bindir = $(_prefix)/bin _sbindir = $(_prefix)/sbin _includedir = $(_prefix)/include _libdir = $(_prefix)/lib _datadir = $(_prefix)/share _mandir = $(_datadir)/man _docdir = $(_datadir)/doc/lib$(name)-dev export SOURCE_DATE_EPOCH = \ $(shell date -d "$$(dpkg-parsechangelog -c 1 -S Date)" +%s) configure: configure-stamp configure-stamp: dh_testdir dh_autoreconf CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \ FFLAGS="$(FFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ LDFLAGS="$(LDFLAGS) -Wl,--as-needed -Wl,-z,defs" \ GLOBUS_VERSION=6.2 \ dh_auto_configure -- \ --disable-static \ --includedir=$(_includedir)/globus \ --libexecdir=$(_datadir)/globus \ --docdir=$(_docdir) # Reduce overlinking sed 's!CC \(.*-shared\) !CC \\\$${wl}--as-needed \1 !' -i libtool touch $@ build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) GLOBUS_HOSTNAME=localhost $(MAKE) check VERBOSE=1 endif touch $@ clean: dh_testdir dh_testroot if [ -r Makefile ] ; then $(MAKE) distclean ; fi dh_autoreconf_clean rm -f build-stamp configure-stamp dh_clean install: build-stamp dh_testdir dh_testroot dh_prep $(MAKE) install DESTDIR=$(INSTALLDIR) # Remove libtool archives (.la files) rm $(INSTALLDIR)$(_libdir)/*/*.la # Remove installed license file rm $(INSTALLDIR)$(_docdir)/GLOBUS_LICENSE binary: binary-arch binary-indep binary-arch: install dh_testdir dh_testroot dh_installdocs -a debian/README dh_installchangelogs -a dh_install -a dh_missing -a --fail-missing dh_installman -a dh_link -a dh_strip -a --dbgsym-migration='lib$(name)-dbg (<< 8.36-2~), $(name)-dbg (<< 7.6)' dh_compress -a dh_fixperms -a dh_perl -a dh_makeshlibs -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: install dh_testdir dh_testroot dh_installdocs -i dh_installchangelogs -i dh_install -i dh_missing -i --fail-missing dh_installman -i dh_link -i dh_compress -i dh_fixperms -i dh_perl -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i .PHONY: binary binary-arch binary-indep build build-arch build-indep clean configure install