3 # Uncomment this to turn on verbose mode.
6 # This is the debhelper compatability version to use.
8 # This has to be exported to make some magic below work.
11 # These are used for cross-compiling and for saving the configure script
12 # from having to guess our platform (since we know it already)
13 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 export CXXFLAGS = -O2 -finline-limit=1200
22 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 config.status: configure
28 # Add here commands to configure the package.
29 # The Makefile is removed on error in order to prevent the build at this early stage.
30 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info || rm -f Makefile
34 build-arch: build-arch-stamp
35 build-arch-stamp: config.status
36 # Add here commands to compile the arch part of the package.
42 rm -f build-arch-stamp config-stamp
52 # Add here commands to install the arch part of the package into
54 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
55 mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps
56 cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/
58 # Must not depend on anything. This is to be called by
59 # binary-arch/binary-multi
60 # in another 'make' thread.
68 dh_installchangelogs ChangeLog
75 dh_shlibdeps --libpackage=libginac1.1 -l debian/libginac1.1/usr/lib
81 # Build architecture dependant packages using the common target.
82 binary-arch: build-arch install-arch
83 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
86 .PHONY: build clean binary-arch binary install install-arch