File: rules

package info (click to toggle)
zeroc-ice-csharp 3.2.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,752 kB
  • ctags: 5,838
  • sloc: cs: 48,139; python: 1,255; makefile: 1,253; xml: 110; ansic: 87; sh: 26
file content (38 lines) | stat: -rwxr-xr-x 1,332 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
#!/usr/bin/make -f
# -*- makefile -*-

DEB_MAKE_CLEAN_TARGET := clean
DEB_MAKE_BUILD_TARGET := all prefix=/usr
DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/tmp/usr
DEB_MAKE_CHECK_TARGET :=
DEB_BUILD_OPTIONS += nocheck
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
export MONO_SHARED_DIR=$(CURDIR)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_INVOKE := $(DEB_MAKE_ENVVARS) make NOGAC=true LDPLATFORMFLAGS=-g PKG_CONFIG_PATH=../../lib/pkgconfig:../lib/pkgconfig:lib/pkgconfig

pre-build::
	-mkdir -p debian/tmp/usr bin
	-for i in src demo test ; do find $$i -type d | sed -e 's.generated$$..g' -e 's.$$./generated.g' | xargs mkdir ; done

binary-install/libzeroc-ice-3.2-cil::
	echo -e "#!/bin/sh\nexec /usr/bin/cli /usr/lib/cli/libzeroc-ice-3.2/iceboxnet.exe \"\$$@\"\n" > debian/libzeroc-ice-3.2-cil/usr/bin/iceboxnet-3.2
	chmod 755 debian/libzeroc-ice-3.2-cil/usr/bin/iceboxnet-3.2
	cp -r debian/pkgconfig debian/libzeroc-ice-3.2-cil/usr/lib/

common-binary-predeb-indep::
	dh_clifixperms -i
	dh_makeclilibs -i -V
	dh_installcligac -i
	dh_clideps -i -r
	dh_installdeb -i

clean::
	-for i in src demo test ; do find $$i -name generated | xargs rm -rf ; done
	-$(RM) -rf debian/tmp
	-$(RM) -rf $(MONO_SHARED_DIR)/.wapi