File 0526-otp-Fix-system-docs-general-info-makefile-deps.patch of Package erlang

From a4f9f801b181166f2d7dafd252308e294fba7b0b Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 22 Mar 2021 15:14:54 +0100
Subject: [PATCH 2/2] otp: Fix system docs general info makefile deps

---
 system/doc/general_info/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/system/doc/general_info/Makefile b/system/doc/general_info/Makefile
index f7e1a86c5a..7dc5811134 100644
--- a/system/doc/general_info/Makefile
+++ b/system/doc/general_info/Makefile
@@ -85,13 +85,13 @@ debug opt:
 
 DEPRECATIONS_SCRIPT = $(ERL_TOP)/lib/stdlib/scripts/update_deprecations
 
-$(XMLDIR)/deprecations.xml: DEPRECATIONS
+$(XMLDIR)/deprecations.xml: DEPRECATIONS $(wildcard deprecations_*.inc)
 	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml deprecations $(ERL_TOP) $@
 
-$(XMLDIR)/scheduled_for_removal.xml: DEPRECATIONS
+$(XMLDIR)/scheduled_for_removal.xml: DEPRECATIONS $(wildcard scheduled_*.inc)
 	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml scheduled_for_removal $(ERL_TOP) $@
 
-$(XMLDIR)/removed.xml: DEPRECATIONS
+$(XMLDIR)/removed.xml: DEPRECATIONS $(wildcard removed_*.inc)
 	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml removed $(ERL_TOP) $@
 
 clean clean_docs:
-- 
2.26.2

openSUSE Build Service is sponsored by