Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # generate documentation unless nodoc requested
6 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
7 DOCS = README.html README.txt
8 endif
9
10 %:
11 dh $@
12
13 %.html: %.md
14 cmark-gfm $< > $@
15
16 %.txt: %.md
17 cmark-gfm --to plaintext $< > $@
18
19 override_dh_clean:
20 dh_clean -- $(DOCS)
21
22 override_dh_auto_build: $(DOCS)
23
24 override_dh_installdocs:
25 dh_installdocs --all -- $(DOCS)
26
27 execute_after_dh_fixperms:
28 chmod -x debian/*/usr/share/nodejs/@types/json-schema/*
29
30 override_dh_gencontrol:
31 dh_gencontrol -- -V"types:Version=$(shell jq --raw-output .version < Xtypes/package.json)~$(DEB_VERSION)"