File: rules

package info (click to toggle)
brahms 1.02-kde3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 12,136 kB
  • ctags: 8,915
  • sloc: cpp: 38,724; sh: 10,788; perl: 1,892; ansic: 832; makefile: 523
file content (101 lines) | stat: -rwxr-xr-x 2,294 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
#!/usr/bin/make -f
# Based on the sample debian/rules that uses debhelper.
#              GNU copyright 1997 to 1999 by Joey Hess.

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

DEB_BUILD_ARCH := $(shell dpkg --print-installation-architecture)
ARCH=$(DEB_BUILD_ARCH)
LIBQT=-lqt-mt

SHELL = /bin/bash

ifeq ($(ARCH),alpha)
CXXFLAGS+=-O0 -mieee
else
CXXFLAGS+=-O2
endif

CXXFLAGS+=-Wno-deprecated

export CXXFLAGS

export DH_COMPAT=3

export LIBQT

configure: configure-stamp

configure-stamp:
	dh_testdir
# Remove obsolete files from the tarfile.
	make -f Makefile.cvs
	./configure --prefix=/usr --with-qt-includes=/usr/include/qt3 \
	            --with-qt-dir=/usr/share/qt3 --disable-rpath
	touch configure-stamp

build: configure-stamp build-stamp

build-stamp:
	dh_testdir
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
# Remove obsolete files from the tarfile.
	if [ ! -f Makefile ]; then \
		make -f Makefile.cvs;\
		./configure --prefix=/usr --with-qt-includes=/usr/include/qt3 \
	                --with-qt-dir=/usr/share/qt3 --disable-rpath;\
	fi
	-$(MAKE) distclean
# Remove extra files.
	rm -f html
	find . -name Makefile.in | xargs rm -f config.h.in configure \
	     configure-stamp configure.files configure.in
	find . -name Makefile | xargs rm -f acinclude.m4 aclocal.m4 
# TODO: remove any remaining files.
	rm -f build-stamp configure-stamp
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install prefix=`pwd`/debian/brahms/usr
	cd debian/brahms/usr/lib && mv libBrahms* brahms && mv brahms/libBrahms{Core,Arts}.* .
	cd debian/brahms/usr/lib && rm -f *.so
    # fix absolute link in the doc dir
	cd debian/brahms/usr/share/doc/kde/HTML/en/brahms && rm common && ln -s ../common common


binary-indep: build install
# No architecture independet parts to be made for Brahms.

binary-arch: build install
	dh_testdir
	dh_testroot
	test -L html || ln -s ../kde/HTML/en/brahms html
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installman
	dh_undocumented
	dh_installchangelogs
	dh_link
	dh_makeshlibs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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