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=tex latex
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" > $@
59 #$(outdir)/%: %-wrapper.sh
60 # cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
63 $(outdir)/tex: tex-wrapper.sh
64 cat $< | sed $(sed-atvariables) -e "s!@name@!tex!g" > $@
67 $(outdir)/latex: latex-wrapper.sh
68 cat $< | sed $(sed-atvariables) -e "s!@name@!latex!g" > $@
71 default: $(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS) $(OUT_POST_INSTALLS) $(OUT_PROFILES)
73 # urg: change suffixes before overwriting python scripts
75 INSTALLATION_OUT_SUFFIXES=1 2 3 4
79 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
80 # The cygwin profile.d dir, however, is in /etc
82 INSTALLATION_DIR=$(shell dirname $(shell dirname $(prefix)))/etc/postinstall
83 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
85 INSTALLATION_OUT_DIR1=$(shell dirname $(shell dirname $(prefix)))/etc/profile.d
86 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
88 INSTALLATION_OUT_DIR2=$(prefix)/wrappers
89 INSTALLATION_OUT_FILES2=$(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS)
91 INSTALLATION_OUT_DIR3=$(datadir)/tex
92 INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
94 INSTALLATION_OUT_DIR4=$(datadir)/tfm
95 INSTALLATION_OUT_FILES4=$(shell kpsewhich cmr10.tfm)
102 local-install-outfiles: