5 EXTRA_DIST_FILES = changelog mknetrel $(wildcard *.sh *.hint)
7 include $(depth)/make/stepmake.make
9 # For cygwin builds only
10 ifneq ($(CYGWIN_BUILD),)
12 STEPMAKE_TEMPLATES = install install-out
14 POST_INSTALLS=$(wildcard post-*.sh)
15 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
17 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
18 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
22 cat $< | sed $(sed-atvariables) > $@
26 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
30 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES) $(OUTIN_FILES)
32 INSTALLATION_OUT_SUFFIXES=1 2
36 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
37 # The cygwin profile.d dir, however, is in /etc
39 # avoid collapsed directory constructs '//'
40 #etc=$(dir $(patsubst %/, %, $(dir $(prefix)/)))etc
41 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
42 INSTALLATION_DIR=$(etc)/postinstall
43 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
45 INSTALLATION_OUT_DIR1=$(etc)/profile.d
46 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
48 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
49 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)