File: rules

package info (click to toggle)
cecil 0.9.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,008 kB
  • sloc: cs: 32,179; makefile: 17
file content (32 lines) | stat: -rwxr-xr-x 761 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
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f Mono.Cecil/mono-cecil.pc
	find . -type d -name obj -exec rm -rf {} \; || true
	rm -rf $(CURDIR)/bin
	rm -rf $(CURDIR)/dbg/bin
	rm -rf $(CURDIR)/Test/bin

override_dh_auto_build:
	xbuild /property:Configuration=net_4_0_Release

	sed -e 's;@prefix@;/usr;g' \
		-e 's;^Version:.*;Version:\ $(DEB_VERSION_UPSTREAM);g' \
		debian/mono-cecil.pc.in > Mono.Cecil/mono-cecil.pc

# these are miscalculated, they pick up the private-yet-GAC Cecil from src:mono
# so manually define deps instead.
override_dh_clideps:

# no clilibs — private library
override_dh_makeclilibs: