4 EXTRA_DIST_FILES = LilyPond.ico $(wildcard *.sh *.patch)
6 STEPMAKE_TEMPLATES=documentation texinfo install install-out
8 include $(depth)/make/stepmake.make
14 # For cygwin builds only
15 target=$(shell gcc -dumpmachine)
16 ifeq ($(target),i686-pc-cygwin)
18 POST_INSTALLS=$(wildcard post-*.sh)
19 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
21 # lily-*: rename to '-profile' or so
22 PROFILES=$(wildcard *lily-*.sh) lilypond-profile.sh
23 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
38 OUT_PYTHON_WRAPPERS=$(PYTHON_WRAPPERS:%=$(outdir)/%)
40 TEX_WRAPPERS=dvips latex mktextfm tex yap
41 OUT_TEX_WRAPPERS=$(TEX_WRAPPERS:%=$(outdir)/%)
45 cat $< | sed $(sed-atvariables) > $@
49 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/out/lilypond-profile
54 $(outdir)/%: python-wrapper.sh
55 cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
58 ATVARIABLES += OPTIONS
61 #$(outdir)/%: %-wrapper.sh
62 # cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
65 $(outdir)/latex: tex-wrapper.sh
66 cat $< | sed $(sed-atvariables) -e "s!@name@!latex!g" > $@
69 $(outdir)/dvips: tex-wrapper.sh
70 cat $< | sed $(sed-atvariables) -e "s!@name@!dvips!g" > $@
73 MKTEXFTM_OPTIONS=--dest-dir \"$$(cygpath -w \"\"/usr/lilypond/share/lilypond/tfm\"\")\"
74 $(outdir)/mktextfm: tex-wrapper.sh
75 cat $< | sed -e 's!@OPTIONS@!$(MKTEXFTM_OPTIONS)!' $(sed-atvariables) -e "s!@name@!maketfm!g" > $@
78 $(outdir)/tex: tex-wrapper.sh
79 cat $< | sed $(sed-atvariables) -e "s!@name@!tex!g" > $@
82 $(outdir)/yap: tex-wrapper.sh
83 cat $< | sed $(sed-atvariables) -e "s!@name@!yap!g" > $@
86 default: $(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS) $(OUT_POST_INSTALLS) $(OUT_PROFILES)
88 # urg: change suffixes before overwriting python scripts
90 INSTALLATION_OUT_SUFFIXES=1 2 3 4
94 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
95 # The cygwin profile.d dir, however, is in /etc
97 INSTALLATION_DIR=$(shell dirname $(shell dirname $(prefix)))/etc/postinstall
98 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
100 INSTALLATION_OUT_DIR1=$(shell dirname $(shell dirname $(prefix)))/etc/profile.d
101 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
103 INSTALLATION_OUT_DIR2=$(prefix)/wrappers
104 INSTALLATION_OUT_FILES2=$(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS)
106 INSTALLATION_OUT_DIR3=$(datadir)/tex
107 INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
109 INSTALLATION_OUT_DIR4=$(datadir)/tfm
110 INSTALLATION_OUT_FILES4=$(shell kpsewhich cmr10.tfm)
117 local-install-outfiles: