5 MKNETRELS
= $(wildcard mknetrel mknetrel.
*[a-z
])
6 EXTRA_DIST_FILES
= changelog
$(MKNETRELS
) $(wildcard *.hint
)
8 SEXECUTABLES
=bug-lilypond-cygwin lily-wins
9 STEPMAKE_TEMPLATES
= install install-out script
11 include $(depth
)/make
/stepmake.make
13 # For Cygwin builds only
14 ifneq ($(CYGWIN_BUILD
),)
16 include $(stepdir
)/executable-targets.make
18 POSTINSTALLS
=$(wildcard postinstall
*.sh
)
19 OUT_POSTINSTALLS
=$(POSTINSTALLS
:%=$(outdir
)/%)
21 POSTREMOVES
=$(wildcard postremove
*.sh
)
22 OUT_POSTREMOVES
=$(POSTREMOVES
:%=$(outdir
)/%)
24 PROFILES
=$(wildcard *-profile.sh
) lilypond-profile.sh
25 OUT_PROFILES
=$(PROFILES
:%=$(outdir
)/%)
28 $(outdir
)/%.sh
: %.sh
$(config_make
)
29 cat
$< | sed
$(sed-atvariables
) > $@
32 # Get profile from buildscripts
33 $(outdir
)/lilypond-profile.sh
: $(outdir
)/..
/$(depth
)/buildscripts
/$(outconfbase
)/lilypond-profile
37 default
: $(OUT_POSTINSTALLS
) $(OUT_POSTREMOVES
) $(OUT_PROFILES
) $(OUTIN_FILES
)
39 INSTALLATION_OUT_SUFFIXES
=1 2 # 3
41 # Avoid collapsed directory constructs '//'
42 etc
=$(patsubst %/, %, $(dir $(prefix)))/etc
43 INSTALLATION_DIR
=$(etc
)/postinstall
44 INSTALLATION_FILES
=$(OUT_POSTINSTALLS
)
46 INSTALLATION_OUT_DIR1
=$(etc
)/profile.d
47 INSTALLATION_OUT_FILES1
=$(OUT_PROFILES
)
49 INSTALLATION_OUT_DIR2
=$(etc
)/postremove
50 INSTALLATION_OUT_FILES2
=$(OUT_POSTREMOVES
)
52 # INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/tex
53 # INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)