diff --git a/Makefile b/Makefile index 835c8fa561..cb14504627 100644 --- a/Makefile +++ b/Makefile @@ -62,12 +62,15 @@ website-dirs: # Make downloads for each language $(foreach lang, $(LANGS), [ ! -d $(DEST)/_downloads/$(lang) ] && mkdir $(DEST)/_downloads/$(lang) || true;) -website: website-dirs html populate-index epub +website: website-dirs html populate-index epub pdf # Move HTML $(foreach lang, $(LANGS), cp -r build/html/$(lang) $(DEST)/$(lang);) # Move EPUB files - $(foreach lang, $(LANGS), cp -r build/epub/$(lang)/*.epub $(DEST)/_downloads/$(lang);) + $(foreach lang, $(LANGS), cp -r build/epub/$(lang)/*.epub $(DEST)/_downloads/$(lang) || true;) + + # Move PDF files + $(foreach lang, $(LANGS), [ -f build/latex/$(lang)/*.pdf ] && cp -r build/latex/$(lang)/*.pdf $(DEST)/_downloads/$(lang) || true;) clean: rm -rf build/*