5 EXTRA_DIST_FILES = changelog mknetrel $(wildcard *.hint)
7 SEXECUTABLES=bug-lilypond-cygwin lily-wins
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 POSTINSTALLS=$(wildcard postinstall*.sh)
18 OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
20 POSTREMOVES=$(wildcard postremove*.sh)
21 OUT_POSTREMOVES=$(POSTREMOVES:%=$(outdir)/%)
23 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
24 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
27 $(outdir)/%.sh: %.sh $(config_make)
28 cat $< | sed $(sed-atvariables) > $@
31 # Get profile from buildscripts
32 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
36 default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUT_PROFILES) $(OUTIN_FILES)
38 INSTALLATION_OUT_SUFFIXES=1 2 # 3
40 # Avoid collapsed directory constructs '//'
41 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
42 INSTALLATION_DIR=$(etc)/postinstall
43 INSTALLATION_FILES=$(OUT_POSTINSTALLS)
45 INSTALLATION_OUT_DIR1=$(etc)/profile.d
46 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
48 INSTALLATION_OUT_DIR2=$(etc)/postremove
49 INSTALLATION_OUT_FILES2=$(OUT_POSTREMOVES)
51 # INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/tex
52 # INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)