Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
5 export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
6
7 # trust upstream optimization level unless explicitly disabled
8 ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
9 export DEB_CFLAGS_MAINT_STRIP=-O2
10 export DEB_CXXFLAGS_MAINT_STRIP=-O2
11 endif
12
13 # generate documentation unless nodoc requested
14 DOCS_stem = README $(basename $(wildcard docs/*.md))
15 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
16 DOCS = $(addsuffix .html,$(DOCS_stem)) $(addsuffix .txt,$(DOCS_stem))
17 MANPAGES = regalloc2-tool.1
18 endif
19
20 %:
21 dh $@
22
23 %.html: %.md
24 cmark-gfm $< > $@
25
26 %.txt: %.md
27 cmark-gfm --to plaintext $< > $@
28
29 execute_after_dh_auto_build: $(DOCS)
30
31 # TODO: enable when upstream code supports non-tty execution
32 #execute_after_dh_auto_install: #$(MANPAGES)
33 override_dh_installman:
34
35 override_dh_installdocs:
36 dh_installdocs --all -- $(DOCS)
37
38 # build manpages
39 # TODO: enable when upstream code supports non-tty execution
40 #regalloc2-tool.1: %.1: debian/regalloc2-tool/usr/bin/%
41 # mkdir --parents $(dir $@)
42 # help2man --section 1 --no-info \
43 # --name "tool for testing regalloc2" \
44 # --output $@ $< \
45 # || { $1 --help; false; }