File: rules

package info (click to toggle)
sublib 0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,212 kB
  • ctags: 1,234
  • sloc: cs: 6,558; sh: 3,338; makefile: 39; xml: 5
file content (17 lines) | stat: -rwxr-xr-x 428 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
export DH_VERBOSE=1

VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2 | sed 's,-.*,,')

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp

override_dh_install:
	sed -i 's,#PACKAGE_UPSTREAM_VERSION#,$(VERSION),' $(CURDIR)/debian/tmp/usr/lib/pkgconfig/sublib.pc
	dh_install

override_dh_auto_configure:
	dh_auto_configure -- MCS=/usr/bin/mono-csc

%:
	dh $@ --with cli