File: rules

package info (click to toggle)
nng 1.11-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 5,608 kB
  • sloc: ansic: 77,673; sh: 321; cpp: 62; makefile: 30
file content (43 lines) | stat: -rwxr-xr-x 1,331 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
#!/usr/bin/make -f
#-*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_auto_clean:
	$(RM) -r $(CURDIR)/build-shared
	$(RM) -r $(CURDIR)/build-static
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake --builddir=build-static \
		-- \
		-DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=OFF
	dh_auto_configure --buildsystem=cmake --builddir=build-shared \
		-- -DNNG_ENABLE_DOC=ON \
		-DNNG_ENABLE_TLS=ON -DBUILD_SHARED_LIBS=ON

override_dh_auto_build:
	dh_auto_build --buildsystem=cmake --builddir=build-static
	dh_auto_build --buildsystem=cmake --builddir=build-shared

override_dh_auto_test:
	dh_auto_test --buildsystem=cmake --builddir=build-static --no-parallel
	dh_auto_test --buildsystem=cmake --builddir=build-shared --no-parallel

override_dh_auto_install:
	dh_auto_install --buildsystem=cmake --builddir=build-static
	dh_auto_install --buildsystem=cmake --builddir=build-shared

override_dh_install:
	install -d $(CURDIR)/debian/nng-utils/usr/share/doc/nng/
	mv $(CURDIR)/debian/tmp/usr/share/doc/nng/*.1.html \
		$(CURDIR)/debian/nng-utils/usr/share/doc/nng/
	dh_install

%:
	dh $@ --buildsystem=cmake

.PHONY: override_dh_auto_clean override_dh_auto_configure \
	override_dh_auto_build override_dh_auto_test \
	override_dh_auto_install override_dh_install