Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 %:
8 dh $@
9
10 define newline =
11
12
13 endef
14 define space =
15 endef
16
17 COMPONENTS=$(subst $(newline),$(space),$(shell set -e;cd debian/components && (find . -type d -printf "%f\n" | sed '/^[.]$$/d' )))
18 COMPONENTS_FILES_C=$(foreach component,$(COMPONENTS),./debian/components/$(component)/$(1))
19 COPYRIGHT_COMPONENTS_FILES=$(call COMPONENTS_FILES,copyright)
20 DOCS_COMPONENTS_FILES=$(call COMPONENTS_FILES,docs)
21 INSTALL_COMPONENTS_FILES=$(call COMPONENTS_FILES,install)
22 MODULES_COMPONENTS=$(foreach component,$(COMPONENTS),$(shell echo $(component) | sed 's/^module[-]//g'))
23
24 override_dh_installdocs:
25 set -e; for C in $(MODULES_COMPONENTS); do \
26 mkdir -p debian/node-on-finished/usr/share/doc/node-$$C; \
27 ln -s ../node-on-finished/copyright "debian/node-on-finished/usr/share/doc/node-$$C/copyright";\
28 done
29 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
30 dh_installdocs
31 install ee-first/README.md debian/node-on-finished/usr/share/doc/node-ee-first
32 endif
33
34 override_dh_installchangelogs:
35 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
36 dh_installchangelogs -k HISTORY.md
37 endif
38 set -e ;for C in $(MODULES_COMPONENTS); do \
39 mkdir -p "debian/node-on-finished/usr/share/doc/node-$$C";\
40 ln -s ../node-on-finished/changelog.Debian.gz "debian/node-on-finished/usr/share/doc/node-$$C/changelog.Debian.gz";\
41 done