File: rules

package info (click to toggle)
libappindicator 0.4.92-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,996 kB
  • ctags: 866
  • sloc: sh: 11,415; ansic: 3,983; xml: 1,334; makefile: 730; cs: 87; python: 2
file content (124 lines) | stat: -rwxr-xr-x 3,260 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
118
119
120
121
122
123
124
#!/usr/bin/make -f

DEB_SRCDIR = .
DEB_BUILDDIR = $(DEB_SRCDIR)/build

DEB_PYTHON_SYSTEM=dh_python2
PY_VERSIONS = $(shell pyversions --requested debian/control)


CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wno-error=deprecated-declarations

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.mk

API_VERSION = 0.1

#DEB_MAKE_CHECK_TARGET := check

DEB_CONFIGURE_EXTRA_FLAGS += --disable-scrollkeeper --enable-gtk-doc --enable-introspection
DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)

configure-stamp-%:
	mkdir build-$*
	cd build-$* && PYTHON=`which $*` \
		$(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) --srcdir=..
	touch $@

configure/python-appindicator:: $(addprefix configure-stamp-, $(PY_VERSIONS))

build-stamp-%:
	PYTHON=`which $*` \
		$(MAKE) -C build-$*
	touch $@

build/python-appindicator:: $(addprefix build-stamp-, $(PY_VERSIONS))

install-stamp-%:
	PYTHON=`which $*` \
		$(MAKE) -C build-$*/bindings/python install DESTDIR=$(CURDIR)/debian/tmp
	dh_installdirs -ppython-appindicator 
	dh_install -ppython-appindicator
	touch $@

binary-install/python-appindicator:: $(addprefix install-stamp-, $(PY_VERSIONS))

configure-stamp: 
	cd $(DEB_BUILDDIR) && \
		$(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS) --enable-gtk-doc
	touch $@

configure/libappindicator1:: configure-stamp

build-stamp: 
	$(MAKE) -C $(DEB_BUILDDIR)
	touch $@

build/libappindicator1:: build-stamp

install-stamp:
	$(MAKE) -C $(DEB_BUILDDIR) install DESTDIR=$(CURDIR)/debian/tmp
	touch $@

binary-install/libappindicator1:: install-stamp install-stamp-gtk3
	dh_makeshlibs -plibappindicator1


configure-stamp-gtk3:
	: # configure for GTK+ 3.0
	rm -rf build-gtk3; \
	mkdir build-gtk3; \
	cd build-gtk3; \
	$(DEB_BUILD_MAINT_OPTIONS) CFLAGS="$(CFLAGS)" ../configure --with-gtk=3 \
		$(filter-out --enable-gtk-doc, $(filter-out --srcdir=%, $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS))) \
		--enable-gtk-doc=no; \
	cd ..;
	touch $@

configure/libappindicator3-1:: configure-stamp-gtk3

build-stamp-gtk3:
	: # build for GTK+ 3.0
	$(MAKE) -C build-gtk3/src;
	$(MAKE) -C build-gtk3/bindings/vala;
	touch $@

build/libappindicator3-1:: build-stamp-gtk3

install-stamp-gtk3:
	: # install for GTK+ 3.0
	$(MAKE) -C build-gtk3/src DESTDIR=$(CURDIR)/debian/tmp install
	$(MAKE) -C build-gtk3/bindings/vala DESTDIR=$(CURDIR)/debian/tmp install
	touch $@

binary-install/libappindicator3-1:: install-stamp-gtk3
	dh_makeshlibs -plibappindicator3-1

binary-install/libappindicator0.1-cil:: binary-fixup/libappindicator1
	dh_clistrip
	dh_clifixperms
	dh_makeclilibs -V
	dh_installcligac

binary-fixup/python-appindicator::
	find debian/python-appindicator/usr/lib -name \*.la -exec rm {} \;
	find debian/python-appindicator/usr/lib -name \*.a -exec rm {} \;
	dh_python2 -ppython-appindicator

binary-predeb/gir%::
	dh_girepository -p$(cdbs_curpkg)

common-binary-predeb-arch:: list-missing
	dh_fixperms
	dh_strip
	cd po; intltool-update --pot --verbose

clean::
	rm -f configure-stamp*
	rm -f build-stamp*
	rm -f install-stamp*
	rm -rf build
	rm -rf build-gtk3
	rm -rf build-python*