]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/GNUmakefile
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond...
[lilypond.git] / input / lsr / GNUmakefile
1 depth = ../..
2
3 # urg, can't name itely templates foo.itely.in because of standard rule
4
5 STEPMAKE_TEMPLATES=documentation texinfo tex
6 LOCALSTEPMAKE_TEMPLATES=lilypond ly
7 EXTRA_DIST_FILES += README $(call src-wildcard,*.snippet-list)
8
9 ifneq ($(out),)
10 MAIN_INFO_DOC = lilypond-snippets
11 INFO_DOCS = lilypond-snippets
12 INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
13 INFO_IMAGES_DIR = lilypond-snippets
14 DEST_INFO_IMAGES_SUBDIR = input/lsr
15 endif
16
17 default:
18
19 include $(depth)/make/stepmake.make
20
21 IN_ITELY_FILES = $(call src-wildcard,*-intro.itely)
22 GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
23
24 $(outdir)/%.itely: %-intro.itely %.snippet-list
25         xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f printfilename,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
26
27 $(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES)
28
29 info: $(INFO_FILES)
30
31 ifneq ($(out),www)
32 # cancel install-info target and $(INFO_FILES) 'default' target
33 # (there is no lilypond-snippets.info without images)
34 local-install-info:
35
36 $(INFO_FILES):
37         true
38 endif
39
40 # All web targets, except info image symlinks and info docs are
41 # installed in non-recursing target from TOP-SRC-DIR
42 local-install-WWW: local-install-info
43 local-uninstall-WWW: local-uninstall-info
44
45 local-clean:
46         rm -f $(INFO_IMAGES_DIR)
47
48 local-WWW: info $(outdir)/lilypond-snippets.pdf \
49   $(outdir)/lilypond-snippets/index.html \
50   $(outdir)/lilypond-snippets-big-page.html