Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export DH_VERBOSE=1
6
7 # generate documentation unless nodoc requested
8 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
9 DOCS = README.html README.txt
10 CHANGELOGS = CHANGELOG.html CHANGELOG.txt
11 endif
12
13 %:
14 dh $@
15
16 %.html: %.md
17 pandoc --from gfm-raw_html --to html --standalone --output $@ $<
18
19 %.txt: %.md
20 pandoc --from gfm-raw_html --to plain --output $@ $<
21
22 override_dh_clean:
23 dh_clean -- $(DOCS) $(CHANGELOGS)
24 rm -rf dist dist-node .build
25
26 override_dh_auto_build: $(DOCS) $(CHANGELOGS)
27 mkdir -p node_modules/@types
28 ln -sfn /usr/share/nodejs/@types/node node_modules/@types/node
29 bash scripts/build.sh --no-pack
30
31 execute_after_dh_install:
32 # CLI binary lives only in the Node build (./dist-node/bin); strip it
33 # from the installed module since we don't ship a uuid binary package
34 rm -rf debian/node-uuid/usr/share/nodejs/uuid/dist-node/bin