File: rules

package info (click to toggle)
monodevelop 1.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 32,528 kB
  • ctags: 40,669
  • sloc: cs: 255,472; xml: 10,041; makefile: 3,731; sh: 2,528; sed: 2
file content (49 lines) | stat: -rwxr-xr-x 1,449 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
#!/usr/bin/make -f
export DH_VERBOSE=1

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

build: build-stamp
build-stamp: patch-stamp
	dh build --before configure
	dh_auto_configure -- \
	  --disable-update-mimedb \
	  --disable-update-desktopdb \
	  --disable-monoextensions \
	  --enable-versioncontrol --enable-subversion \
	  --enable-aspnet \
	  --enable-gnomeplatform \
	  --enable-c
	dh build --after configure
	touch build-stamp

clean: clean-patched unpatch
clean-patched:
	dh clean

install: build
	dh $@ --before dh_install
	# install missing DLL maps
	cp debian/MonoDevelop.SourceEditor.dll.config debian/tmp/usr/lib/monodevelop/AddIns/
	cp debian/MonoDevelop.Gettext.dll.config debian/tmp/usr/lib/monodevelop/AddIns/MonoDevelop.Gettext/
	# fix permissions of .mo files
	cd $(CURDIR)/debian/tmp/usr/share/locale && find -name "*.mo" -exec chmod -x {} \;
	dh $@ --remaining

binary: binary-arch binary-indep

binary-arch:

binary-indep: build install
	dh $@ --until dh_install
	# remove nunit files (shipped in monodevelop-nunit)
	rm -rf debian/monodevelop/usr/lib/monodevelop/AddIns/NUnit/
	# remove versioncontrol files (shipped in monodevelop-versioncontrol)
	rm -rf debian/monodevelop/usr/lib/monodevelop/AddIns/VersionControl/
	# remove ChangeLogAddIn files (shipped in monodevelop-versioncontrol)
	rm -rf debian/monodevelop/usr/lib/monodevelop/AddIns/ChangeLogAddIn/
	dh $@ --after dh_install

%:
	dh $@