File: rules

package info (click to toggle)
nrefactory 5.3.0%2B20130718.73b6d0f-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 15,720 kB
  • sloc: cs: 296,018; makefile: 24; ansic: 7; sh: 2
file content (33 lines) | stat: -rwxr-xr-x 989 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

MAKEFILE = $(firstword $(MAKEFILE_LIST))
DEBIAN_DIR = $(dir $(MAKEFILE))
DEB_VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Vers | cut -d\  -f2)
VERSION = $(shell echo $(DEB_VERSION) | sed 's,-.*,,' | sed 's,+dfsg.*,,')
DEB_CLI_ABI_VERSION = 5.0

override_dh_install:
	# pkg-config
	install -D $(CURDIR)/debian/nrefactory.pc \
	           $(CURDIR)/debian/tmp/usr/lib/pkgconfig/nrefactory.pc
	perl -pe 's/#VERSION#/$(VERSION)/' -i \
	  $(CURDIR)/debian/tmp/usr/lib/pkgconfig/nrefactory.pc
	perl -pe 's/#DEB_CLI_ABI_VERSION#/$(DEB_CLI_ABI_VERSION)/g' -i \
	  $(CURDIR)/debian/tmp/usr/lib/pkgconfig/nrefactory.pc
	dh_install

override_dh_auto_build:
	xbuild $(CURDIR)/NRefactory.sln /p:Configuration=Debug

override_dh_auto_clean:
	xbuild $(CURDIR)/NRefactory.sln /p:Configuration=Debug /t:Clean
	-rm -r $(CURDIR)/bin

override_dh_makeclilibs:
	dh_makeclilibs -V

override_dh_clideps:
	dh_clideps --exclude-moduleref=fusion

%:
	dh $@ --with cli