Makefile.common.inc: make 'publish' target use $(UPLOAD_FILES)

In some projects, the VTY reference PDFs may be located in sub-
directories.  Let's use $(UPLOAD_FILES), it already contains
the list of all *.pdf files to be uploaded / published.

Change-Id: I7d46dc3b67dee1a91f3ade5a166d833df816abd4
Related: SYS#4937
This commit is contained in:
Vadim Yanitskiy 2020-11-06 17:08:51 +07:00
parent 345738508e
commit ff86b25a5d
1 changed files with 2 additions and 4 deletions

View File

@ -27,10 +27,8 @@ clean:
distclean: clean
publish: all
mkdir -p out
cp *.pdf out
rsync -avz -e "$(SSH_COMMAND)" ./out/ docs@rita.osmocom.org:web-files/latest/
publish: $(UPLOAD_FILES)
rsync -avz -e "$(SSH_COMMAND)" $(UPLOAD_FILES) docs@rita.osmocom.org:web-files/latest/
# Install and uninstall targets
# Notes about OSMO_GSM_MANUALS_NO_INSTALL: