aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-06-12 14:08:32 +0200
committerLukas Larsson <[email protected]>2018-06-12 14:08:32 +0200
commit86022d6e975aff0254f4800cf2f15260517849ea (patch)
treee45462de442b3bf518792d7216c4b02940a02b67 /make
parent465d2849ed0d832577a25a52f0717ec5f7eb94bd (diff)
parent199095e7a49b57b7660fdd695139791d73fcf7c6 (diff)
downloadotp-86022d6e975aff0254f4800cf2f15260517849ea.tar.gz
otp-86022d6e975aff0254f4800cf2f15260517849ea.tar.bz2
otp-86022d6e975aff0254f4800cf2f15260517849ea.zip
Merge branch 'lukas/erl_docgen/add_github_contrib_link/OTP-14979'
* lukas/erl_docgen/add_github_contrib_link/OTP-14979: otp: Allow applications to opt out of github edit links
Diffstat (limited to 'make')
-rw-r--r--make/otp_release_targets.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/make/otp_release_targets.mk b/make/otp_release_targets.mk
index f57116569c..d1fbf6c58f 100644
--- a/make/otp_release_targets.mk
+++ b/make/otp_release_targets.mk
@@ -41,6 +41,8 @@ _create_xml_dirs := $(shell mkdir -p $(XMLDIR))
endif
XML_GEN_FILES+=$(patsubst %.xml,$(XMLDIR)/%.xml,$(XML_FILES))
+
+ifeq ($(strip $(NO_GITHUB_DOC_LINKS)),)
$(XMLDIR)/%.xml: %.xml
$(gen_verbose)escript $(DOCGEN)/priv/bin/github_link.escript $< \
"$(subst $(ERL_TOP)/,,$(CURDIR)/$^)" "NA" $@
@@ -48,6 +50,13 @@ $(XMLDIR)/%.xml: %.xml
$(XMLDIR)/%.xmlsrc: %.xmlsrc
$(gen_verbose)escript $(DOCGEN)/priv/bin/github_link.escript $< \
"$(subst $(ERL_TOP)/,,$(CURDIR)/$^)" "NA" $@
+else
+## Just copy the files if the application does not want github edit links
+$(XMLDIR)/%.xml: %.xml
+ $(gen_verbose)$(CP) $< $@
+$(XMLDIR)/%.xmlsrc: %.xmlsrc
+ $(gen_verbose)$(CP) $< $@
+endif
ifeq ($(TOPDOC),)