| 1 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 32 |
|
| 33 |
override_dh_installman: |
| 34 |
|
| 35 |
override_dh_installdocs: |
| 36 |
dh_installdocs --all -- $(DOCS) |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|