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
export 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_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
|