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 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
15 DOCS = README.html README.txt ARCHITECTURE.html ARCHITECTURE.txt
16 MANPAGES = debian/delta.1
17 endif
18
19 %:
20 dh $@
21
22 %.html: %.md
23 cmark-gfm $< > $@
24
25 %.txt: %.md
26 cmark-gfm --to plaintext $< > $@
27
28 execute_after_dh_auto_build: $(DOCS)
29
30 execute_after_dh_auto_install: $(MANPAGES)
31
32 override_dh_installdocs:
33 dh_installdocs --all -- $(DOCS)
34
35 # build manpages
36 debian/delta.1: debian/%.1: debian/git-delta/usr/bin/%
37 help2man --section 1 --no-info \
38 --name "syntax-highlighting pager for git, diff, and grep output" \
39 --output $@ $< \
40 || { $< --help; false; }
41 perl -i -p -e 's/\e\[[0-9;]*[mM]//g' $@