File: rules

package info (click to toggle)
dbus-sharp 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 868 kB
  • sloc: cs: 7,690; sh: 494; makefile: 181
file content (49 lines) | stat: -rwxr-xr-x 1,135 bytes parent folder | download | duplicates (3)
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

DEB_API_VERSION = 0.8.1
DEB_ABI_VERSION = 2.0
DEB_CLI_DIR = debian/tmp/usr/lib/cli/dbus-sharp-$(DEB_ABI_VERSION)/
DEB_DOC_DIR = $(CURDIR)/doc
DEB_LIB_FILES = $(CURDIR)/src/dbus-sharp.dll
DEB_LIBCONF_FILES = $(CURDIR)/src/dbus-sharp.dll.config
DEB_CLEAN_FILES = $(CURDIR)/src/dbus-sharp.zip $(CURDIR)/src/dbus-sharp.tree $(DEB_DOC_DIR)

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

override_dh_auto_build:
	dh_auto_build
	mkdir -p $(DEB_DOC_DIR);
	for LIB in $(DEB_LIB_FILES); do \
		mdoc update \
			-fno-assembly-versions \
			--out=$(CURDIR)/monodoc \
			$$LIB; \
		mdoc assemble \
			--format ecma \
			--out $${LIB%.dll} \
			$(DEB_DOC_DIR); \
	done

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(DEB_CLI_DIR)
	for FILE in $(DEB_LIB_FILES) $(DEB_LIBCONF_FILES); do \
		install $$FILE $(CURDIR)/$(DEB_CLI_DIR); \
	done

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(DEB_CLEAN_FILES)

override_dh_auto_test:

override_dh_clideps:
	dh_clideps --exclude-moduleref=libc

override_dh_makeclilibs:
	dh_makeclilibs -m$(DEB_API_VERSION)

%:
	dh $@ --with cli