From b6ad4e01f951d176e82400e58772359d09884130 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 20 Jan 2023 12:04:25 -0600 Subject: [PATCH] Remove warning on first build after clone Created a new file, dummy.xml, that is copied to ./general/prog/python-dependencies/pythonhosted.xml if that file does not already exist. This avoids a warning when generating the book for the first time after cloning the source from the repository. --- Makefile | 6 +++--- dummy.xml | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 dummy.xml diff --git a/Makefile b/Makefile index ecdb521052..8bef5b4da3 100644 --- a/Makefile +++ b/Makefile @@ -287,9 +287,9 @@ $(PYHOSTED): $(ALL_PYTHON_DEPS) \ $(PYTHONHOSTED_MOD_PAGES) \ stylesheets/pyhosted-inc.xsl \ stylesheets/pythonhosted.xsl | version.ent - @echo Generating pythonhosted.xml; \ - if [ ! -f $@ ]; then \ - echo The following warning can be ignored...; \ + @echo Generating pythonhosted.xml; \ + if [ ! -f $@ ]; then \ + cp dummy.xml $(PYHOSTED); \ fi $(Q)xsltproc --xinclude \ --output temp.xml \ diff --git a/dummy.xml b/dummy.xml new file mode 100644 index 0000000000..1d6332262b --- /dev/null +++ b/dummy.xml @@ -0,0 +1,9 @@ + + + + +