File: rules

package info (click to toggle)
kfocus 1.0.2-14
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,024 kB
  • ctags: 556
  • sloc: sh: 11,406; cpp: 3,664; perl: 2,033; xml: 342; python: 258; makefile: 127
file content (83 lines) | stat: -rwxr-xr-x 2,064 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
# tweaked by Stephen Kulow and Ivan Moore for use with KDE

BUILDDIR = ./build

ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifeq ($(ARCH),alpha)
        export CFLAGS=-O0 -mieee
        export CXXFLAGS=-O0 -mieee
endif

build: build-stamp

-include debian/debiandirs

debian/debiandirs: debian/debianrules
	perl -w debian/debianrules echodirs > debian/debiandirs

build-stamp:
	dh_testdir
	if test ! -f configure; then \
	  $(MAKE) -f admin/Makefile.common ;\
	fi
	./configure $(configkde) --with-qt-dir=/usr/share/qt3 --enable-mt
	make
	touch build-stamp

clean: debian-clean
	dh_clean

debian-clean:
	dh_testdir
	-rm -f build-stamp
	if test -d CVS; then \
	  make -f admin/Makefile.common cvs-clean ;\
	fi
	-make distclean
	-test -r /usr/share/misc/config.sub && \
	  cp -f /usr/share/misc/config.sub admin/config.sub
	-test -r /usr/share/misc/config.guess && \
	  cp -f /usr/share/misc/config.guess admin/config.guess


binary-indep: build
	dh_testroot
	dh_testdir
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	install -d debian/tmp/etc/kde2
	make install DESTDIR=`pwd`/debian/tmp/
	perl -w debian/debianrules cleanup
	/usr/bin/meinproc doc/en/index.xml
	mv *.html debian/tmp/$(kde_htmldir)/en/kfocus/
	dh_undocumented
	dh_movefiles
	dh_link usr/share/icons/locolor/16x16/apps/kfocus.png  usr/share/icons/hicolor/16x16/apps/kfocus.png usr/share/icons/locolor/32x32/apps/kfocus.png usr/share/icons/hicolor/32x32/apps/kfocus.png
	dh_installdocs
	dh_installmenu
	dh_installmime
	dh_installchangelogs ChangeLog
	dh_strip
	dh_perl
	dh_compress -X .docbook
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb       	

# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean