5 EXTRA_DIST_FILES = README changelog mknetrel $(wildcard *.sh *.hint)
7 STEPMAKE_TEMPLATES = install install-out
9 include $(depth)/make/stepmake.make
11 # For cygwin builds only
12 target=$(shell gcc -dumpmachine)
13 ifeq ($(target),i686-pc-cygwin)
15 POST_INSTALLS=$(wildcard post-*.sh)
16 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
18 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
19 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
23 cat $< | sed $(sed-atvariables) > $@
27 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
31 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
33 INSTALLATION_OUT_SUFFIXES=1 2
37 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
38 # The cygwin profile.d dir, however, is in /etc
40 # avoid collapsed directory constructs '//'
41 #etc=$(dir $(patsubst %/, %, $(dir $(prefix)/)))etc
42 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
43 INSTALLATION_DIR=$(etc)/postinstall
44 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
46 INSTALLATION_OUT_DIR1=$(etc)/profile.d
47 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
49 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
50 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
57 local-install-outfiles: