5 EXTRA_DIST_FILES = changelog mknetrel $(wildcard *.sh *.hint)
7 SEXECUTABLES=bug-lilypond-cygwin
8 STEPMAKE_TEMPLATES = install install-out script
10 include $(depth)/make/stepmake.make
12 # For Cygwin builds only
13 ifneq ($(CYGWIN_BUILD),)
15 include $(stepdir)/executable-targets.make
17 POST_INSTALLS=$(wildcard post-*.sh)
18 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
20 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
21 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
25 cat $< | sed $(sed-atvariables) > $@
29 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
33 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES) $(OUTIN_FILES)
35 INSTALLATION_OUT_SUFFIXES=1 2
37 # Avoid collapsed directory constructs '//'
38 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
39 INSTALLATION_DIR=$(etc)/postinstall
40 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
42 INSTALLATION_OUT_DIR1=$(etc)/profile.d
43 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
45 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
46 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)