summaryrefslogtreecommitdiff
path: root/system/doc/oam
diff options
context:
space:
mode:
authorRickard Green <rickard@erlang.org>2019-03-04 16:25:17 +0100
committerRickard Green <rickard@erlang.org>2019-03-04 16:25:17 +0100
commit250462066db0344e5387d15ed2b89bce261ea64d (patch)
tree15826ad523895a20f75aaf02cc7310fdc9fd958e /system/doc/oam
parent53e7743216647d810d529e397bd3ea7278c6047c (diff)
parent1adb588f84b1a9340beac2719c0890a05e2dfaad (diff)
downloaderlang-250462066db0344e5387d15ed2b89bce261ea64d.tar.gz
Merge 'rickard/make-fixes-17/OTP-15551' into 'rickard/make-fixes-18/OTP-15551'
* rickard/make-fixes-17/OTP-15551: Fix install phase in build system - Install of (mainly) documentation caused rebuild and modification of the source tree even when the source previously had been built. Also otp_patch_apply modified the source tree when updating documentation. This messed up the installation if installation was performed by another user than the user that originally built the system which not is an uncommon scenario. - Some documentation was installed by copying files instead of installing the files which caused faulty access rights on files. - The documentation was not properly updated when applying a patch using otp_patch_apply.
Diffstat (limited to 'system/doc/oam')
-rw-r--r--system/doc/oam/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/doc/oam/Makefile b/system/doc/oam/Makefile
index 0638a4dbd6..32453428ef 100644
--- a/system/doc/oam/Makefile
+++ b/system/doc/oam/Makefile
@@ -70,10 +70,9 @@ DVIPS_FLAGS +=
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-_create_dirs := $(shell mkdir -p $(HTMLDIR))
$(HTMLDIR)/%.gif: %.gif
- $(INSTALL_DATA) $< $@
+ $(CP) $< $@
docs: html
@@ -86,7 +85,7 @@ gifs: $(GIF_FILES:%=$(HTMLDIR)/%)
debug opt:
clean clean_docs:
- rm -rf $(HTMLDIR)
+ rm -f $(HTMLDIR)/*.gif $(HTMLDIR)/*.html
rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo)
rm -f errs core *~