summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorAlberto Simoes <ambs@cpan.org>2012-01-04 12:09:31 +0000
committerJames Lowe <pkx166h@gmail.com>2012-01-04 12:34:05 +0000
commitd48d50143400c703f6b8b0a874cb9015e3b6f496 (patch)
treec2a66d78eb8892c5c1bdf985320ed00b4f648fb8 /make
parent03ad62f748d4acd73dfdd485e2a57d2550d0bc4a (diff)
Copy pdf docs to new website folder
Diffstat (limited to 'make')
-rw-r--r--make/website.make15
1 files changed, 12 insertions, 3 deletions
diff --git a/make/website.make b/make/website.make
index 18da8feba8..4fed193985 100644
--- a/make/website.make
+++ b/make/website.make
@@ -73,6 +73,7 @@ WEB_BIBS=python $(script-dir)/bib2texi.py
EXAMPLES=$(LILYPOND_WEB_MEDIA_GIT)/ly-examples
PICTURES=$(LILYPOND_WEB_MEDIA_GIT)/pictures
+PDFS=$(LILYPOND_WEB_MEDIA_GIT)/pdf
SERVER_FILES=$(top-src-dir)/Documentation/web/server
@@ -145,6 +146,9 @@ misc-files = $(OUT)/.htaccess \
picture-src-files := $(notdir $(wildcard $(PICTURES)/*))
picture-files = $(picture-src-files:%=$(OUT)/website/pictures/%)
+pdf-src-files := $(notdir $(wildcard $(PDFS)/*))
+pdf-files = $(pdf-src-files:%=$(OUT)/website/pdf/%)
+
post-files = $(OUT)/website/index.html
texinfo-files = $(OUT)/index.html $(WEB_LANGS:%=$(OUT)/%/index.html)
@@ -159,7 +163,7 @@ xref-files = $(MANUALS_BASE:%=$(OUT)/%.xref-map)
.PHONY: website website-bibs website-css website-examples website-misc \
website-pictures website-post website-test website-texinfo \
- website-version website-xrefs check-setup
+ website-version website-xrefs check-setup website-pdf
check-setup:
ifeq ($(LILYPOND_WEB_MEDIA_GIT),)
@@ -167,7 +171,7 @@ ifeq ($(LILYPOND_WEB_MEDIA_GIT),)
exit 1
endif
-website: check-setup website-post website-examples website-pictures website-css website-misc
+website: check-setup website-post website-examples website-pictures website-css website-misc website-pdf
website-bibs: website-version $(OUT) $(bib-files)
@@ -179,6 +183,8 @@ website-misc: $(OUT)/website $(misc-files)
website-pictures: $(OUT)/website/pictures $(OUT)/pictures $(picture-files)
+website-pdf: $(OUT)/website/pdf $(pdf-files)
+
website-post: website-texinfo $(post-files)
website-test:
@@ -195,7 +201,7 @@ website-xrefs: website-version $(OUT) $(xref-files)
### Rules
# Directories
-$(OUT) $(OUT)/website $(OUT)/website/css $(OUT)/website/ly-examples $(OUT)/website/pictures: %:
+$(OUT) $(OUT)/website $(OUT)/website/css $(OUT)/website/ly-examples $(OUT)/website/pictures $(OUT)/website/pdf: %:
mkdir -p $@
$(OUT)/pictures: $(OUT)/website/pictures
@@ -265,6 +271,9 @@ $(example-files): $(OUT)/website/ly-examples/%: $(EXAMPLES)/%
$(picture-files): $(OUT)/website/pictures/%: $(PICTURES)/%
cp $< $@
+$(pdf-files): $(OUT)/website/pdf/%: $(PDFS)/%
+ cp $< $@
+
$(OUT)/website/favicon.ico: $(SERVER_FILES)/favicon.ico
cp $< $@