This builds the website using the pictures and ly-examples which
will appear on the actual website. Previously, it used either
pictures from a local "make doc" run, or from a hard-coded
$HOME/lilypond/web-media/ directory. The latter is how it's built
on lilypond.org, but that relies on me personally uploading new
files.
Once this is accepted and pushed, I'll dig out our "publications"
pdfs, and anything else remaining in web/, add them to this
script, then finally rename the web/ dir (which is the pre-2009
website) to oldweb/.
Building with "make doc" is completely unaffected.
top-htaccess=$(trusted-dir)/lilypond.org.htaccess
dir-htaccess=$(trusted-dir)/website-dir.htaccess
TEXI2HTML_PROGRAM=$(HOME)/usr/bin/texi2html
top-htaccess=$(trusted-dir)/lilypond.org.htaccess
dir-htaccess=$(trusted-dir)/website-dir.htaccess
TEXI2HTML_PROGRAM=$(HOME)/usr/bin/texi2html
- EXAMPLES=$(HOME)/lilypond/media/ly-examples
- PICTURES=$(HOME)/lilypond/media/pictures
PYTHON=python
PYTHONPATH=$(TRUSTED_DIR)
else
PYTHON=python
PYTHONPATH=$(TRUSTED_DIR)
else
top-htaccess=$(top-src-dir)/Documentation/web/server/lilypond.org.htaccess
dir-htaccess=$(top-src-dir)/Documentation/web/server/website-dir.htaccess
include $(config_make)
top-htaccess=$(top-src-dir)/Documentation/web/server/lilypond.org.htaccess
dir-htaccess=$(top-src-dir)/Documentation/web/server/website-dir.htaccess
include $(config_make)
- # I assume this is run from top-build-dir
- EXAMPLES=Documentation/web/ly-examples/out-www
- PICTURES=Documentation/pictures/out-www
endif
################################################################
endif
################################################################
WEB_POST=python $(script-dir)/website_post.py
WEB_BIBS=python $(script-dir)/bib2texi.py
WEB_POST=python $(script-dir)/website_post.py
WEB_BIBS=python $(script-dir)/bib2texi.py
+EXAMPLES=$(LILYPOND_WEB_MEDIA_GIT)/ly-examples
+PICTURES=$(LILYPOND_WEB_MEDIA_GIT)/pictures
+
SERVER_FILES=$(top-src-dir)/Documentation/web/server
# don't include web
SERVER_FILES=$(top-src-dir)/Documentation/web/server
# don't include web
.PHONY: website website-bibs website-css website-examples website-misc \
website-pictures website-post website-test website-texinfo \
.PHONY: website website-bibs website-css website-examples website-misc \
website-pictures website-post website-test website-texinfo \
- website-version website-xrefs
+ website-version website-xrefs check-setup
+
+check-setup:
+ifeq ($(LILYPOND_WEB_MEDIA_GIT),)
+ echo "Need a $LILYPOND_WEB_MEDIA_GIT environment variable!"
+ exit 1
+endif
-website: website-post website-examples website-pictures website-css website-misc
+website: check-setup website-post website-examples website-pictures website-css website-misc
website-bibs: website-version $(OUT) $(bib-files)
website-bibs: website-version $(OUT) $(bib-files)