01880456 |
1 | #! /usr/bin/make -f |
2 | |
3 | export DH_COMPAT = 4 |
4 | |
5 | build: |
6 | rm -rf build deb-build |
7 | mkdir deb-build |
8 | cd deb-build; ../configure --prefix=/usr --with-pager=pager |
9 | make -C deb-build |
10 | touch build |
11 | |
12 | clean: |
13 | dh_clean |
14 | rm -rf deb-build build |
15 | |
16 | install: build |
17 | dh_clean |
18 | make -C deb-build install DESTDIR=`pwd`/debian/bascat |
19 | mkdir -p debian/bascat/usr/share/doc/bascat |
20 | install -m644 ChangeLog NEWS AUTHORS README \ |
21 | debian/bascat/usr/share/doc/bascat |
22 | |
23 | binary-indep: |
24 | |
25 | binary-arch: install |
26 | dh_testdir -a |
27 | dh_testroot -a |
28 | dh_compress -a |
29 | dh_installdocs -a |
30 | dh_strip -a |
31 | dh_shlibdeps -a |
32 | dh_gencontrol -a |
33 | dh_fixperms -a |
34 | dh_installdeb -a |
35 | dh_md5sums -a |
36 | dh_builddeb -a |
37 | |
38 | binary: binary-indep binary-arch |
39 | |
40 | source: |
41 | rm -rf deb-build/*.tar.gz deb-build/=deb= |
42 | make -C deb-build dist |
43 | mkdir deb-build/=deb= |
44 | cd deb-build/=deb=; tar xvfz ../*.tar.gz |
45 | d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/deb-build/=deb=/* |
46 | rm -rf deb-build/=deb= |
47 | |
48 | .PHONY: binary binary-arch binary-indep clean install source |