File: rules

package info (click to toggle)
librandomx 1.1.7-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,440 kB
  • sloc: cpp: 8,968; ansic: 2,197; asm: 1,650; pascal: 104; makefile: 30; sh: 4
file content (46 lines) | stat: -rwxr-xr-x 1,148 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
44
45
46
#!/usr/bin/make -f

DH_OPTIONS = -O--buildsystem=cmake

# generate documentation unless nodoc requested
DOCS_stem = README doc/design doc/specs
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
DOCS = $(foreach d,$(DOCS_stem),$d.html $d.txt)
endif

# avoid executable stack in assembly code
export DEB_CFLAGS_MAINT_APPEND = -Wa,--noexecstack

ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel powerpc))
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic -Wl,--as-needed
endif

# Let d-shlibs calculate development package dependencies
#  and handle shared library install
override_dh_install: $(DOCS)
	dh_install
	d-shlibmove --commit \
		--devunversioned \
		--exclude-a \
		--exclude-la \
		--multiarch \
		--movedev "debian/tmp/usr/include/*" usr/include/ \
		debian/tmp/usr/lib/*/*.so

override_dh_missing:
	dh_missing --fail-missing

override_dh_installdocs:
	dh_installdocs --all -- $(DOCS)

override_dh_clean:
	dh_clean -- $(DOCS)

%.html: %.md
	pandoc --from gfm-raw_html --to html --standalone --output $@ $<

%.txt: %.md
	pandoc --from gfm-raw_html --to plain --output $@ $<

%:
	dh $@ --with pkgkde_symbolshelper $(DH_OPTIONS:-O%=%)