]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/GNUmakefile
patch::: 1.3.149.jcn1
[lilypond.git] / Documentation / windows / GNUmakefile
1
2 depth=../..
3
4 EXTRA_DIST_FILES = LilyPond.ico $(wildcard *.sh *.patch)
5
6 STEPMAKE_TEMPLATES=documentation texinfo install install-out
7
8 include $(depth)/make/stepmake.make 
9
10 default: local-doc
11
12 local-WWW:
13
14 # For cygwin builds only
15 target=$(shell gcc -dumpmachine)
16 ifeq ($(target),i686-pc-cygwin)
17
18 POST_INSTALLS=$(wildcard post-*.sh)
19 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
20
21 # lily-*: rename to '-profile' or so
22 PROFILES=$(wildcard *lily-*.sh) lilypond-profile.sh
23 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
24
25 ##as2text.scm
26 PYTHON_WRAPPERS=\
27  abc2ly\
28  convert-ly\
29  etf2ly\
30  lilypond-book\
31  ly2dvi\
32  mup2ly\
33  musedata2ly\
34  pmx2ly\
35  update-lily\
36 #
37
38 OUT_PYTHON_WRAPPERS=$(PYTHON_WRAPPERS:%=$(outdir)/%)
39
40 TEX_WRAPPERS=tex latex
41 OUT_TEX_WRAPPERS=$(TEX_WRAPPERS:%=$(outdir)/%)
42
43 # profiles
44 $(outdir)/%.sh: %.sh
45         cat $< | sed $(sed-atvariables) > $@
46         chmod 755 $@
47
48 # Urg
49 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/out/lilypond-profile
50         cp $< $@
51         chmod 755 $@
52
53 # python wrappers
54 $(outdir)/%: python-wrapper.sh
55         cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
56         chmod 755 $@
57
58 # tex wrappers
59 #$(outdir)/%: %-wrapper.sh
60 #       cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
61 #       chmod 755 $@
62
63 $(outdir)/tex: tex-wrapper.sh
64         cat $< | sed $(sed-atvariables) -e "s!@name@!tex!g" > $@
65         chmod 755 $@
66
67 $(outdir)/latex: latex-wrapper.sh
68         cat $< | sed $(sed-atvariables) -e "s!@name@!latex!g" > $@
69         chmod 755 $@
70
71 default: $(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS) $(OUT_POST_INSTALLS) $(OUT_PROFILES)
72
73 # urg: change suffixes before overwriting python scripts
74
75 INSTALLATION_OUT_SUFFIXES=1 2 3 4
76
77 # URG.
78 # By popular demand,
79 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
80 # The cygwin profile.d dir, however, is in /etc
81
82 INSTALLATION_DIR=$(shell dirname $(shell dirname $(prefix)))/etc/postinstall
83 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
84
85 INSTALLATION_OUT_DIR1=$(shell dirname $(shell dirname $(prefix)))/etc/profile.d
86 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
87
88 INSTALLATION_OUT_DIR2=$(prefix)/wrappers
89 INSTALLATION_OUT_FILES2=$(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS)
90
91 INSTALLATION_OUT_DIR3=$(datadir)/tex
92 INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
93
94 INSTALLATION_OUT_DIR4=$(datadir)/tfm
95 INSTALLATION_OUT_FILES4=$(shell kpsewhich cmr10.tfm)
96
97 else
98
99 local-install:
100         @echo skipping
101
102 local-install-outfiles:
103         @echo skipping
104
105 endif