File: rules

package info (click to toggle)
releaseforge 1.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,088 kB
  • ctags: 1,239
  • sloc: python: 13,801; makefile: 68; sh: 32
file content (98 lines) | stat: -rwxr-xr-x 3,027 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DH_PY_INTERPRETER=/usr/bin/python

configure: configure-stamp
configure-stamp: patch
	dh_testdir
	# clear out files we regenerate
	rm -f ReleaseForge/helpBA.py
	rm -f ReleaseForge/loginBA.py
	rm -f ReleaseForge/aboutDialogBA.py
	rm -f ReleaseForge/releaseWizardBA.py
	rm -f ReleaseForge/mainWindowBA.py
	rm -f ReleaseForge/newsBA.py
	touch configure-stamp

build: build-stamp

build-stamp: configure-stamp 
	dh_testdir
	#$(DH_PY_INTERPRETER) setup.py build
	# always regenerate from ui files
	(cd ReleaseForge; pyuic helpBA.ui >helpBA.py)
	(cd ReleaseForge; pyuic loginBA.ui >loginBA.py)
	(cd ReleaseForge; pyuic releaseWizardBA.ui >releaseWizardBA.py)
	(cd ReleaseForge; pyuic mainWindowBA.ui >mainWindowBA.py)
	(cd ReleaseForge; pyuic aboutDialogBA.ui >aboutDialogBA.py)
	(cd ReleaseForge; pyuic newsBA.ui >newsBA.py)
	touch build-stamp

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	# Add here commands to clean up after the build process.
	#$(DH_PY_INTERPRETER) setup.py clean
	rm -rf build/
	rm -f ReleaseForge/*.pyc
	rm -f ReleaseForge/python24/*.pyc
	dh_clean 

patch: patch-stamp
patch-stamp:
	dpatch apply-all

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	# Add here commands to install the package into debian/releaseforge.
	$(DH_PY_INTERPRETER) setup.py install --prefix=usr --root=debian/releaseforge
	chmod +x debian/releaseforge/usr/lib/python2.4/site-packages/ReleaseForge/login.py
	chmod +x debian/releaseforge/usr/lib/python2.4/site-packages/ReleaseForge/sf.py
	chmod +x debian/releaseforge/usr/lib/python2.4/site-packages/ReleaseForge/fm.py
	chmod +x debian/releaseforge/usr/lib/python2.4/site-packages/ReleaseForge/mainWindow.py
	chmod +x debian/releaseforge/usr/lib/python2.4/site-packages/ReleaseForge/python24/base64.py
	rm -f debian/releaseforge/usr/share/releaseforge/LICENSE.txt

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGELOG.txt
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installman debian/releaseforge.1
	dh_link
	dh_compress
	dh_fixperms
	dh_pysupport /usr/lib/python2.4/site-packages/ReleaseForge
	dh_python /usr/lib/python2.4/site-packages/ReleaseForge
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure