File: rules

package info (click to toggle)
gtk+ 1:1.0.4-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,756 kB
  • ctags: 9,201
  • sloc: ansic: 89,322; sh: 2,010; makefile: 703; lisp: 109; awk: 9; perl: 6
file content (117 lines) | stat: -rwxr-xr-x 3,417 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/make -f

# debian/rules file for gtk+ Debian package
# written April 1998 by Ben Gertzfield <che@debian.org

build: build-stamp
build-stamp:
	dh_testdir
	automake
	aclocal
	autoconf
	cd glib
	automake
	aclocal
	autoconf
	cd ..
	./configure --prefix=/usr --with-xinput=xfree
	$(MAKE)
	cd docs && make -f Makefile.sgml html
	cd ..
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	-$(MAKE) distclean
	-rm docs/*.html
	find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '*.P' | xargs rm -rf
	dh_clean

install: install-stamp
install-stamp: build
	dh_testdir
	dh_testroot
	dh_clean
	$(MAKE) prefix=`pwd`/debian/tmp/usr install
	touch install-stamp

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

# Build architecture-dependent files here.
binary-arch: build install libgtk-dev libgtk1

libgtk1: build
	dh_testdir -plibgtk1 
	dh_testroot -plibgtk1
	dh_installdirs -plibgtk1
	# Add here commands to install the files into debian/tmp
	rm -rf debian/tmp/usr/bin debian/tmp/usr/include debian/tmp/usr/info debian/tmp/usr/lib/glib debian/tmp/usr/share debian/tmp/usr/lib/*.la
	dh_installdocs -plibgtk1
	dh_installchangelogs -plibgtk1
	dh_strip -plibgtk1
	dh_compress -plibgtk1
	dh_fixperms -plibgtk1
	dh_installdeb -plibgtk1
	dh_shlibdeps -plibgtk1
	dh_gencontrol -plibgtk1
	dh_makeshlibs -plibgtk1 -V
	dh_md5sums -plibgtk1
	dh_builddeb -plibgtk1

libgtk-dev: build
	dh_testdir -plibgtk-dev
	dh_testroot -plibgtk-dev
	dh_clean -plibgtk-dev -k
	dh_installdirs -plibgtk-dev
	# Add here commands to install the files into debian/tmp
	dh_movefiles -plibgtk-dev
	cp gtk-config debian/tmp/usr/bin
	dh_installdocs -plibgtk-dev 
	dh_installchangelogs -plibgtk-dev
	dh_strip -plibgtk-dev
	dh_compress -plibgtk-dev
	dh_fixperms -plibgtk-dev
	dh_installdeb -plibgtk-dev
	dh_shlibdeps -plibgtk-dev
	dh_gencontrol -plibgtk-dev
	dh_makeshlibs -plibgtk-dev
	dh_md5sums -plibgtk-dev
	dh_builddeb -plibgtk-dev

libgtk-doc:
	dh_testdir -plibgtk-doc
	dh_testroot -plibgtk-doc
	dh_clean -plibgtk-doc -k
	dh_installdirs -plibgtk-doc usr/doc/libgtk-doc/faq-html \
	  usr/doc/libgtk-doc/tutorial-html usr/doc/libgtk-doc/italian-tutorial-html
	dh_movefiles -plibgtk-doc
	cp docs/gtkfaq*.html debian/libgtk-doc/usr/doc/libgtk-doc/faq-html
	cp docs/gtk_tut-*.html debian/libgtk-doc/usr/doc/libgtk-doc/tutorial-html
	cp docs/*.gif debian/libgtk-doc/usr/doc/libgtk-doc/tutorial-html
	cp docs/gtk_tut.html debian/libgtk-doc/usr/doc/libgtk-doc/tutorial-html
	cp docs/gtk_tut_it*.html debian/libgtk-doc/usr/doc/libgtk-doc/italian-tutorial-html
	cp docs/*.gif debian/libgtk-doc/usr/doc/libgtk-doc/italian-tutorial-html
	dh_installdocs -plibgtk-doc docs/{debugging,developers,styles,text_widget,widget_system,gtk-config}.txt TODO NEWS
	dh_installchangelogs -plibgtk-doc ChangeLog
	dh_strip -plibgtk-doc
	dh_compress -plibgtk-doc
	dh_fixperms -plibgtk-doc
	dh_installdeb -plibgtk-doc
	dh_shlibdeps -plibgtk-doc
	dh_gencontrol -plibgtk-doc
	dh_makeshlibs -plibgtk-doc
	dh_md5sums -plibgtk-doc
	dh_builddeb -plibgtk-doc


source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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