Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DH_OPTIONS = -O--buildsystem=cmake
4
5 # generate documentation unless nodoc requested
6 DOCS_stem = README doc/design doc/specs
7 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
8 DOCS = $(foreach d,$(DOCS_stem),$d.html $d.txt)
9 endif
10
11 # avoid executable stack in assembly code
12 export DEB_CFLAGS_MAINT_APPEND = -Wa,--noexecstack
13
14 ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel powerpc))
15 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic -Wl,--as-needed
16 endif
17
18 # Let d-shlibs calculate development package dependencies
19 # and handle shared library install
20 override_dh_install: $(DOCS)
21 dh_install
22 d-shlibmove --commit \
23 --devunversioned \
24 --exclude-a \
25 --exclude-la \
26 --multiarch \
27 --movedev "debian/tmp/usr/include/*" usr/include/ \
28 debian/tmp/usr/lib/*/*.so
29
30 override_dh_installdocs:
31 dh_installdocs --all -- $(DOCS)
32
33 override_dh_clean:
34 dh_clean -- $(DOCS)
35
36 %.html: %.md
37 pandoc --from gfm-raw_html --to html --standalone --output $@ $<
38
39 %.txt: %.md
40 pandoc --from gfm-raw_html --to plain --output $@ $<
41
42 %:
43 dh $@ --with pkgkde_symbolshelper