source: tags/0.2.2/debian/rules @ 335

Revision 319, 1.6 KB checked in by marc, 3 years ago (diff)

Better prefix for installation

  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6
7PYTHON  := /usr/bin/python
8PYVER   := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]')
9
10configure: configure-stamp
11configure-stamp:
12        dh_testdir
13        # Add here commands to configure the package.
14
15        touch configure-stamp
16
17build: build-stamp
18
19build-stamp: configure-stamp
20        dh_testdir
21
22        # This needs to be updated to have the new options
23        #/usr/bin/docbook-to-man debian/itaka.sgml > share/itaka.1
24
25        touch build-stamp
26
27clean:
28        dh_testdir
29        dh_testroot
30        rm -f build-stamp configure-stamp
31
32        # Add here commands to clean up after the build process.
33        $(MAKE) clean
34
35        -rm -f debian/files
36
37        dh_clean
38
39install: build
40        dh_testdir
41        dh_testroot
42        dh_clean -k
43        dh_installdirs
44
45        # Add here commands to install the package into debian/itaka.
46        $(MAKE) REAL_PREFIX=/usr PREFIX=$(CURDIR)/debian/itaka/usr install
47
48        # And other miscellaneous tasks
49        /usr/bin/convert share/images/itaka.png -resize 32x32 debian/itaka/usr/share/pixmaps/itaka.xpm
50        /usr/bin/convert share/images/itaka.png -resize 16x16 debian/itaka/usr/share/pixmaps/itaka16x16.xpm
51
52# Build architecture-independent files here.
53binary-arch: build install
54# We have nothing to do by default.
55
56# Build architecture-dependent files here.
57binary-indep: build install
58        dh_testdir
59        dh_testroot
60        dh_installdocs
61        dh_installexamples
62        dh_installmenu
63        dh_installman share/itaka.1
64        dh_link
65        dh_strip
66        dh_installchangelogs ChangeLog
67        dh_compress
68        dh_fixperms
69        dh_installdeb
70        dh_shlibdeps
71        dh_gencontrol
72        dh_md5sums
73        dh_builddeb
74
75binary: binary-indep binary-arch
76.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.