1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
#!/usr/bin/make -f
# rules
#
# Robert Jordens <jordens@debian.org>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
#
# $Id: rules 158 2003-09-15 14:53:01Z rj $
#
# Fix for existant, but inaccessible home directory.
HOME := $(shell pwd)/nonexistant
export HOME
include /usr/share/cdbs/1/class/makefile.mk
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*$$//')
DEB_UPSTREAM_TARBALL_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/\+[^+]*$$//')
DEB_TAR_SRCDIR := gift-$(DEB_UPSTREAM_TARBALL_VERSION)
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \
sed -e 's/.*parallel=\([0-9]\+\).*/\1/')
ifeq ($(DEB_BUILD_OPTIONS),$(PARALLEL_JOBS))
PARALLEL_JOBS := $(shell if [ -f /proc/cpuinfo ]; \
then echo `cat /proc/cpuinfo | grep 'processor' | wc -l`; \
else echo 1; fi)
endif
NJOBS := -j$(PARALLEL_JOBS)
endif
DEB_MAKE_ENVVARS := MAKEFLAGS=$(NJOBS) LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib
DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared=yes --enable-static=yes \
--enable-set-web-publishing-directory=/var/www/gnuift \
--enable-set-web-publishing-location=http://localhost/gnuift \
--enable-bayesian --enable-multi-threading
DEB_DH_MAKESHLIBS_ARGS := -V
DEB_SHLIBDEPS_INCLUDE := debian/libgnuift0c2a/usr/lib debian/libmrml1c2a/usr/lib
DEB_PERL_INCLUDE := debian/gnuift/usr/bin debian/gnuift-perl/usr/share/perl5/GIFT debian/gnuift-perl/usr/share/gnuift debian/gnuift/usr/share/gnuift
DEB_INSTALL_DOCS_ALL := $(shell cat debian/docs)
DEB_INSTALL_CHANGELOGS_ALL := $(DEB_BUILDDIR)/ChangeLog
post-patches:: debian/stamp-autotools-maintregen-arch
debian/stamp-autotools-maintregen-arch:
cd $(DEB_BUILDDIR); sh ./bootstrap-cvs.sh ; \
cp /usr/bin/libtool $(DEB_BUILDDIR); libtoolize --force --copy
touch debian/stamp-autotools-maintregen-arch
build/gnuift::
docbook-to-man debian/gnuift.sgml > debian/gnuift.1
# after the directories are created but before dh_compress is run.
common-binary-post-install-arch::
dh_buildinfo
.PHONY: update-create-orig-tarball
update-create-orig-tarball:
mkdir -p tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
cp *.tar.* tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
tar -C tmp-orig-tree -czvf \
../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
.PHONY: update-clean
update-clean:
rm -rf tmp-orig-tree
clean:: update-clean
clean::
-rm -f Doc/*.txt Doc/*.tex GIFTServer/gift-mrml-messages/*.mrml \
dtd/mrml-parsing-log debian/gnuift.1
-rm -rf Doc/autoDoc
-rm -f debian/stamp-autotools-maintregen-arch
|