File: rules

package info (click to toggle)
nunit 2.4.7%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 9,598
  • sloc: cs: 54,034; cpp: 553; xml: 101; sh: 97; makefile: 50; ansic: 8
file content (59 lines) | stat: -rwxr-xr-x 1,794 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
#!/usr/bin/make -f
export DH_VERBOSE=1
# nant has race conditions on SMP systems and causes hangs or failures
export MONO_NO_SMP=1
BUILD_DIR = build/linux/mono/2.0/release
NANT = nant
DEB_CLI_ABI_VERSION = 2.4
DEB_CLI_API_VERSION = 2.4.7

include /usr/share/cli-common/cli.make
include /usr/share/dpatch/dpatch.make

build: patch-stamp build-stamp
build-stamp:
	dh build --before build
	$(NANT) -f:src/nunit.build mono-2.0 release build
	for lib in nunit.core nunit.framework; do \
	  rm -rf $(BUILD_DIR)/monodocer; \
	  mdoc update \
	    -i $(BUILD_DIR)/$$lib.xml \
	    -o $(BUILD_DIR)/monodocer \
	    $(BUILD_DIR)/$$lib.dll; \
	  mdoc assemble \
	    -o $(BUILD_DIR)/$$lib \
	    $(BUILD_DIR)/monodocer; \
	done
	touch build-stamp

install: build
	dh $@ --before dh_install
	rm -f doc/files/Thumbs.db
	install -D -m 755 debian/nunit-console.sh debian/nunit-console/usr/bin/nunit-console
	install -D -m 755 debian/nunit-gui.sh debian/nunit-gui/usr/bin/nunit-gui
	dh $@ --remaining

binary: binary-indep
binary-indep: install
	dh $@ --before dh_makeclilibs
	dh_makeclilibs -i -m $(DEB_CLI_API_VERSION)
	dh $@ --after dh_makeclilibs

clean: unpatch
	rm -rf build
	rm -f build-stamp
	$(NANT) /f:src/nunit.build mono-2.0 clean-all
	dh $@

%:
	dh $@

upstream_version=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
get-orig-source::
	mkdir nunit-$(upstream_version)
	cd nunit-$(upstream_version) && unzip ../../NUnit-$(upstream_version)-src.zip
	rm -rf nunit-$(upstream_version)/build
	cd nunit-$(upstream_version) && $(NANT) /f:src/nunit.build mono-1.0 clean-all
	cd nunit-$(upstream_version) && $(NANT) /f:src/nunit.build mono-2.0 clean-all
	tar cfz ../nunit_$(upstream_version).orig.tar.gz nunit-$(upstream_version)
	rm -rf nunit-$(upstream_version)