File: rules

package info (click to toggle)
libctl 4.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 964 kB
  • sloc: ansic: 6,926; lisp: 2,343; makefile: 153; sh: 150
file content (57 lines) | stat: -rwxr-xr-x 1,927 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
50
51
52
53
54
55
56
57
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH)

install_file    = /usr/bin/install -p -o root -g root -m 644

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	LIBS="-lm" dh_auto_configure -- --enable-shared

override_dh_installexamples:
	dh_installexamples
	-sed -i -e 's@$(CURDIR)/.@/usr/share/libctl@g' debian/libctl-dev/usr/share/doc/libctl-dev/examples/example.scm

override_dh_installdocs-arch:
	dh_installdocs
	mkdir -p debian/libctl-dev/usr/share/doc/libctl-dev
	cp AUTHORS debian/libctl-dev/usr/share/doc/libctl-dev/AUTHORS
	cp NEWS.md debian/libctl-dev/usr/share/doc/libctl-dev/NEWS
	cp README.md debian/libctl-dev/usr/share/doc/libctl-dev/README

	mkdir -p debian/libctl7/usr/share/doc/libctl7
	cp AUTHORS debian/libctl7/usr/share/doc/libctl7/AUTHORS
	cp NEWS.md debian/libctl7/usr/share/doc/libctl7/NEWS
	cp README.md debian/libctl7/usr/share/doc/libctl7/README

override_dh_installdocs-indep:
	dh_installdocs
	mkdir -p debian/libctl-doc/usr/share/doc/libctl-doc
	cp AUTHORS debian/libctl-doc/usr/share/doc/libctl-doc/AUTHORS
	cp NEWS.md debian/libctl-doc/usr/share/doc/libctl-doc/NEWS
	cp README.md debian/libctl-doc/usr/share/doc/libctl-doc/README
	rm -rf debian/libctl-doc/usr/share/doc/libctl-doc/html/libctl-mkdocs-theme/license

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# unless upstream issue is resolved, all architectures
	# need to be excluded here
	# -> https://github.com/NanoComp/libctl/issues/41
	echo ${arch}
#	if [ "${arch}" = "i386" ] || \
#	   [ "${arch}" = "ppc64el" ] || \
#	   [ "${arch}" = "s390x" ] || \
#	   [ "${arch}" = "powerpc" ] ; then \
#	  echo "Do not make tests on this architecture" ;\
#	else \
#	  echo "Do make tests on this architecture" ;\
#	  make -j4 check VERBOSE=1 ;\
#	fi
endif