f005c8159dd522fba07edd62e3c72d39fde35d60
[cfd] / debian / rules
1 #! /usr/bin/make -f
2
3 build:
4 rm -rf build deb-build
5 mkdir deb-build
6 cd deb-build; ../configure --prefix=/usr --infodir=/usr/share/info
7 make -C deb-build
8 touch build
9
10 clean:
11 dh_clean
12 rm -rf deb-build build
13
14 install: build
15 dh_clean
16 make -C deb-build install DESTDIR=`pwd`/debian/tmp
17
18 binary-indep: install
19 dh_testdir -i
20 dh_testroot -i
21 dh_installinfo -i common.info
22 dh_compress -i
23 dh_installdocs -i
24 dh_gencontrol -i
25 dh_fixperms -i
26 dh_installdeb -i
27 dh_md5sums -i
28 dh_builddeb -i
29
30 binary-arch:
31
32 binary: binary-indep binary-arch
33
34 source:
35 rm -rf deb-build/*.tar.gz deb-build/=deb=
36 make -C deb-build dist PACKAGE=cfd
37 mkdir deb-build/=deb=
38 cd deb-build/=deb=; tar xvfz ../*.tar.gz
39 d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
40 rm -rf deb-build/=deb=
41
42 .PHONY: binary binary-arch binary-indep clean install source
43 EOF