-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
-config.status: configure
- dh_testdir
- # Add here commands to configure the package.
- # The Makefile is removed on error in order to prevent the build at this early stage.
- ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info || rm -f Makefile
-
-build: build-arch
-
-build-arch: build-arch-stamp
-build-arch-stamp: config.status
- # Add here commands to compile the arch part of the package.
- $(MAKE)
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-arch-stamp config-stamp
- -$(MAKE) distclean
- dh_clean
-
-install: install-arch
-install-arch:
- dh_testdir
- dh_testroot
- dh_clean -k -a
- dh_installdirs -a
- # Add here commands to install the arch part of the package into
- # debian/tmp.
- $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
- mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps
- cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/
-
-# Must not depend on anything. This is to be called by
-# binary-arch/binary-multi
-# in another 'make' thread.
-binary-common:
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installmenu
- dh_installman
- dh_installinfo
- dh_installchangelogs ChangeLog
- dh_movefiles
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_makeshlibs
- dh_shlibdeps --libpackage=libginac1.3 -l debian/libginac1.3/usr/lib
- dh_gencontrol
- dh_installdeb
- dh_md5sums
- dh_builddeb