* Prepare for landing of version 0.7.3.
[ginac.git] / debian / rules
1 #!/usr/bin/make -f
2 # Made with the aid of debmake, by Christoph Lameter,
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
4
5 package=ginac
6
7 version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
8 version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
9
10 build:
11         dh_testdir
12         ./configure --without-cint --prefix=/usr
13         $(MAKE) CXXFLAGS="-O2"
14         touch build
15
16 clean:
17         dh_testdir
18         dh_clean
19         -rm -f build
20         -$(MAKE) distclean
21         -rm -f `find . -name "*~"`
22         -rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
23         -rm -f debian/*substvars
24
25 binary-indep: build
26         dh_testdir
27         dh_testroot
28
29 binary-arch: build
30         dh_testdir
31         dh_testroot
32         dh_installdirs
33         # When will Automake honor FHS?
34         $(MAKE) install prefix=`pwd`/debian/tmp/usr infodir=`pwd`/debian/tmp/usr/share/info mandir=`pwd`/debian/tmp/usr/share/man
35         dh_installdocs ChangeLog NEWS README
36         dh_installchangelogs
37         dh_installmenu
38         dh_movefiles -pginac-dev
39         dh_strip
40         dh_compress
41         dh_fixperms
42         dh_shlibdeps
43         dh_gencontrol
44         dh_makeshlibs
45         dh_installdeb
46         dh_md5sums
47         dh_builddeb -pginac -pginac-dev
48
49 binary: binary-indep binary-arch
50
51 .PHONY: binary binary-arch binary-indep clean