#!/usr/bin/make -f export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_DH_ALWAYS_EXCLUDE := .svn:.git: DEB_DH_INSTALL_SOURCEDIR = debian/tmp #DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/tmp/usr include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/dpatch.mk #ifneq "$(wildcard /usr/share/misc/config.sub)" "" # cp -f /usr/share/misc/config.sub config.sub #endif #ifneq "$(wildcard /usr/share/misc/config.guess)" "" # cp -f /usr/share/misc/config.guess config.guess #endif DEB_CONFIGURE_EXTRA_FLAGS := -C \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --enable-gnu-packages \ --with-pvm \ --enable-tests \ --enable-tm-tests \ --enable-statistics \ --enable-draw-graph \ --with-osi-interface \ --with-application \ --with-Documentation # --with-glpk-incdir=/usr/include --with-glpk-lib="-L/usr/lib -lglpk" # --enable-glpk-libcheck \ # --enable-sensitivity-analysis \ # --with-glpk-incdir=/usr/include --with-glpk-lib="-L/usr/lib -lglpk" \ # --with-lp \ # --with-cg \ # --with-cp \ # --with-tm \ # --with-Introduction \ # --with-Example #export LDFLAGS="--as-needed" CPPFLAGS="--as-needed" #DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="--as-needed" CPPFLAGS="--as-needed" #DEB_CONFIGURE_SCRIPT_ENV := CC="gcc-3.4" CXX="g++-3.4" #DEB_MAKE_CLEAN_TARGET := clean #DEB_MAKE_BINARY_TARGET := all DEB_MAKE_CHECK_TARGET := test DEB_COMPRESS_EXCLUDE := .pdf .cpp .mps .cor .stoch .130 .ac .am configure .in .time #DEB_INSTALL_DOCS_symphony-doc += Clp/doc/html #DEB_INSTALL_DOCS_symphony-doc += Data/Sample #DEB_INSTALL_DOCS_symphony-doc += Clp/examples #DEB_INSTALL_DOCS_symphony-doc += SYMPHONY/Doc/man.pdf # Add here any variable or target overrides you need. # build: build-doc build-doc: cd $(DEB_BUILDDIR)/Clp/doc && xmlto html -o html clpuserguide.xml cd $(DEB_BUILDDIR)/SYMPHONY/Doc/ && \ latex man.tex && latex man.tex && \ dvipdfm man.dvi binary-post-install/symphony-doc:: cp -vr debian/tmp/usr/share/doc/coin/* debian/symphony-doc/usr/share/doc/symphony-doc/ cp -vr $(CURDIR)/Clp/doc/html debian/symphony-doc/usr/share/doc/symphony-doc/Clp/html cp -vr $(CURDIR)/Clp/examples debian/symphony-doc/usr/share/doc/symphony-doc/Clp/examples cp -vr $(CURDIR)/Cgl/examples debian/symphony-doc/usr/share/doc/symphony-doc/Cgl/examples cp -vr $(CURDIR)/Osi/examples debian/symphony-doc/usr/share/doc/symphony-doc/Osi/examples cp -vr $(CURDIR)/FlopC++/examples debian/symphony-doc/usr/share/doc/symphony-doc/FlopCpp/examples cp -vr $(CURDIR)/Data debian/symphony-doc/usr/share/doc/symphony-doc/Data cp -vr $(CURDIR)/SYMPHONY/Doc/man.pdf debian/symphony-doc/usr/share/doc/symphony-doc/SYMPHONY/ cp -vr $(CURDIR)/SYMPHONY/Doc/README-5.0 debian/symphony-doc/usr/share/doc/symphony-doc/SYMPHONY/ cp -vr $(CURDIR)/SYMPHONY/Examples debian/symphony-doc/usr/share/doc/symphony-doc/SYMPHONY/Examples # mkdir -pv $(DEB_DH_INSTALL_SOURCEDIR)/{html,examples,Sample} # cp -vr Clp/doc/html $(DEB_DH_INSTALL_SOURCEDIR)/html # cp -vr Clp/examples $(DEB_DH_INSTALL_SOURCEDIR)/examples # cp -vr Data/Sample $(DEB_DH_INSTALL_SOURCEDIR)/Sample