1 ################################################################
2 # website (without the rest of the docs)
4 ################################################################
5 ##### SECURITY -- check these values for lilypond.org #########
6 ################################################################
7 ifeq ($(WEBSITE_ONLY_BUILD
),1)
9 top-src-dir
=$(HOME
)/src
/lilypond
10 trusted-dir
=$(HOME
)/lilypond
/trusted-scripts
11 script-dir
=$(trusted-dir
)
12 texi2html-init-file
=$(trusted-dir
)/lilypond-texi2html.init
13 TEXI2HTML_PROGRAM
=$(HOME
)/usr
/bin
/texi2html
14 EXAMPLES
=$(HOME
)/media
/ly-examples
/
15 PICTURES
=$(HOME
)/media
/pictures
18 script-dir
=$(top-src-dir
)/scripts
/build
/
19 texi2html-init-file
=$(top-src-dir
)/Documentation
/lilypond-texi2html.init
20 include $(config_make
)
21 # I assume this is run from top-build-dir
22 EXAMPLES
=Documentation
/web
/ly-examples
/out-www
/
23 PICTURES
=Documentation
/pictures
/out-www
/
27 ################################################################
30 TEXI2HTML
= TOP_SRC_DIR
=$(top-src-dir
) PERL_UNICODE
=SD
$(TEXI2HTML_PROGRAM
)
32 EXTRACT_TEXI_FILENAMES
=python
$(script-dir
)/extract_texi_filenames.py
33 CREATE_VERSION
=python
$(script-dir
)/create-version-itexi.py
37 MANUALS
=$(wildcard $(top-src-dir
)/Documentation
/*.tely
)
38 MANUALS
+=$(top-src-dir
)/Documentation
/contributor.texi
45 $(CREATE_VERSION
) $(top-src-dir
) > $(OUT
)/version.itexi
47 website-xrefs
: website-version
48 $(EXTRACT_TEXI_FILENAMES
) -I
$(top-src-dir
)/Documentation
/ \
49 -I
$(OUT
) -o
$(OUT
) --split
=node \
50 $(top-src-dir
)/Documentation
/web.texi
51 $(foreach manual
, $(MANUALS
), \
52 $(EXTRACT_TEXI_FILENAMES
) -I
$(top-src-dir
)/Documentation
/ \
53 -I
$(OUT
) -o
$(OUT
) $(manual
) && ) :
55 website-texinfo
: website-version website-xrefs
56 $(TEXI2HTML
) --prefix=index \
58 --I
=$(top-src-dir
)/Documentation
/ \
60 --init-file
=$(texi2html-init-file
) \
62 --output
=$(OUT
)/website
/ \
63 $(top-src-dir
)/Documentation
/web.texi
66 cp
$(top-src-dir
)/Documentation
/css
/*.css
$(OUT
)/website
/
69 mkdir
-p
$(OUT
)/website
/pictures
/
70 cp
$(PICTURES
)/* $(OUT
)/website
/pictures
/
71 ln
-sf website
/pictures
$(OUT
)/pictures
74 mkdir
-p
$(OUT
)/website
/ly-examples
75 cp
$(EXAMPLES
)/* $(OUT
)/website
/ly-examples
78 website
: website-texinfo website-css website-pictures website-examples