| 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 -pginac-doc
|
| 39 |
if test -f cint/ginaccint.bin; then dh_movefiles -pginaccint; fi
|
| 40 |
dh_strip
|
| 41 |
dh_compress
|
| 42 |
dh_fixperms
|
| 43 |
dh_shlibdeps
|
| 44 |
dh_gencontrol
|
| 45 |
dh_makeshlibs
|
| 46 |
dh_installdeb
|
| 47 |
dh_md5sums
|
| 48 |
dh_builddeb -pginac -pginac-dev -pginac-doc
|
| 49 |
if test -f cint/ginaccint.bin; then dh_builddeb -pginaccint; fi
|
| 50 |
|
| 51 |
binary: binary-indep binary-arch
|
| 52 |
|
| 53 |
.PHONY: binary binary-arch binary-indep clean
|