Import Debian changes 0.7.2-2
[jigdo.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 configure: configure-stamp
7 configure-stamp:
8         dh_testdir
9         CC=gcc-3.4 CXX=g++-3.4 \
10             ./configure --prefix=/usr --with-gui --enable-nls \
11             --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
12         touch configure-stamp
13
14 build: configure-stamp build-stamp
15 build-stamp:
16         dh_testdir
17         $(MAKE)
18         $(MAKE) -C src test || true
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp configure-stamp
25         -$(MAKE) distclean
26         dh_clean
27
28 install: build
29         dh_testdir
30         dh_testroot
31         dh_clean -k
32         $(MAKE) DESTDIR=debian/jigdo install-jigdo
33         $(MAKE) DESTDIR=debian/jigdo-file install-po \
34             install-jigdo-file install-jigdo-lite install-jigdo-mirror
35         ln -sf "../common-licenses/GPL-2" \
36             "debian/jigdo/usr/share/jigdo/COPYING"
37
38 # Build architecture-independent files here.
39 binary-indep: build install
40 # We have nothing to do by default.
41
42 # Build architecture-dependent files here.
43 binary-arch: build install
44         dh_testdir
45         dh_testroot
46         dh_installdocs
47         dh_installexamples
48         dh_installmenu
49         dh_installchangelogs 
50         dh_link
51         dh_strip
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_shlibdeps
56         dh_gencontrol
57         dh_md5sums
58         dh_builddeb
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install configure