Debian Codegraph @

misc/0install/debian.rules

raw
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 export DH_PYCENTRAL=include-links dh_pycentral
9
10 # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/<nameOfPackage>
11 export DEB_BUILD_ROOT=/usr/src/packages/BUILD/debian/${DEBPACKAGE}-0install
12 export python_version=$(python2 -c "import sys;print sys.version[:3]")
13
14 build: build-stamp
15 build-arch: build-stamp
16 build-indep: build-stamp
17 build-stamp:
18 dh_testdir
19
20 # --- end custom part for compiling
21
22 touch build-stamp
23
24 clean:
25 dh_testdir
26 dh_testroot
27 rm -f build-stamp
28
29 # Add here commands to clean up after the build process.
30 # --- end custom part for cleaning up
31
32 dh_clean
33
34 install: build
35 dh_testdir
36 dh_testroot
37 dh_prep
38 dh_installdirs
39
40 # Add here commands to install the package
41 mkdir -p "${DEB_BUILD_ROOT}/usr/share/doc/${DEBPACKAGE}-0install";
42 cp debian/copyright "${DEB_BUILD_ROOT}/usr/share/doc/${DEBPACKAGE}-0install/copyright";
43 PYTHONPATH=. python${python_version} util/0install_desktop.py "${DEB_BUILD_ROOT}/usr/share"
44 # --- end custom part for installing
45
46 # Build architecture-dependent files here.
47 binary-arch:
48
49 # Build architecture-independent files here.
50 binary-indep: build install
51 dh_testdir
52 dh_testroot
53 # dh_installdebconf
54 # dh_installdocs
55 # dh_installexamples
56 dh_installmenu
57 # dh_installlogrotate
58 # dh_installemacsen
59 # dh_installpam
60 # dh_installmime
61 # dh_installinit
62 # dh_installcron
63 # dh_installman
64 dh_installinfo
65 # dh_undocumented
66 dh_installchangelogs
67 dh_link
68 dh_strip
69 dh_compress
70 dh_fixperms
71 # dh_makeshlibs
72 dh_installdeb
73 # dh_perl
74 dh_shlibdeps
75 dh_gencontrol
76 dh_md5sums
77 dh_builddeb
78
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install