Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export GENERATED_VERSION:=$(shell emacs --batch -Q -q -l folding.el --eval "(print folding-version-time)" | sed -e 's/\"//g' -e 's/\.//')
4
5 %:
6 dh $@ --with elpa
7
8 # info page is not generated without this override
9 override_dh_elpa:
10 sed -i "s/GENERATED-IN-RULES/$(GENERATED_VERSION)/" folding.el
11 dh_elpa
12 # support the nodoc build profile
13 ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
14 echo -e "\nnodoc build profile enabled, therefore not building docs.\n"
15 else
16 makeinfo --no-split folding.texi -o debian/tmp/folding.info
17 endif
18
19 execute_before_dh_auto_clean:
20 sed -i "s/$(GENERATED_VERSION)/GENERATED-IN-RULES/" folding.el