Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # generate documentation unless nodoc requested
4 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
5 DOCS = README.html README.txt
6 CHANGELOGS = CHANGELOG.html CHANGELOG.txt
7 endif
8
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
11 export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
12
13 # trust upstream optimization level unless explicitly disabled
14 ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
15 export DEB_CFLAGS_MAINT_STRIP=-O2
16 export DEB_CXXFLAGS_MAINT_STRIP=-O2
17 endif
18
19 # enable building manpage and shell completion scripts
20 export BTM_GENERATE = 1
21
22 %:
23 dh $@
24
25 %.html: %.md
26 cmark-gfm $< > $@
27
28 %.txt: %.md
29 cmark-gfm --to plaintext $< > $@
30
31 execute_after_dh_auto_build: $(DOCS) $(CHANGELOGS)
32
33 override_dh_installdocs:
34 dh_installdocs -- $(DOCS)
35
36 override_dh_installchangelogs:
37 dh_installchangelogs -- $(CHANGELOGS)