File: rules

package info (click to toggle)
gudev-sharp-1.0 0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 516 kB
  • ctags: 25
  • sloc: sh: 3,389; xml: 195; makefile: 67
file content (37 lines) | stat: -rwxr-xr-x 758 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
34
35
36
37
#!/usr/bin/make -f
# -*- makefile -*-

DEB_API_VERSION = 0.1
DEB_ABI_VERSION = 1.0
CLIDIR = debian/tmp/usr/lib/cli/gudev-sharp-$(DEB_ABI_VERSION)/

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

override_dh_auto_build:
	dh_auto_build
	mkdir -p monodoc
	mdoc update \
		-fno-assembly-versions \
		--out=monodoc \
		$(CURDIR)/gudev/gudev-sharp.dll
	mdoc assemble \
		--format ecma \
		--out $(CURDIR)/gudev \
		$(CURDIR)/monodoc

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(CLIDIR)
	cp gudev/gudev-sharp.dll $(CLIDIR)
	cp gudev/gudev-sharp.dll.config $(CLIDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf gudev.zip gudev.tree monodoc

override_dh_makeclilibs:
	dh_makeclilibs -m$(DEB_API_VERSION)

%:
	dh $@ --with cli