]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
(OUT_POSTREMOVES): Reinclude install script
[lilypond.git] / cygwin / GNUmakefile
1 depth = ..
2
3 NAME = cygwin
4
5 MKNETRELS = $(wildcard mknetrel mknetrel.*[a-z])
6 EXTRA_DIST_FILES = changelog $(MKNETRELS) $(wildcard *.hint)
7
8 SEXECUTABLES=bug-lilypond-cygwin lily-wins
9 STEPMAKE_TEMPLATES = install install-out script
10
11 include $(depth)/make/stepmake.make
12
13 # For Cygwin builds only
14 ifneq ($(CYGWIN_BUILD),)
15
16 include $(stepdir)/executable-targets.make
17
18 POSTINSTALLS=$(wildcard postinstall*.sh)
19 OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
20
21 POSTREMOVES=$(wildcard postremove*.sh)
22 OUT_POSTREMOVES=$(POSTREMOVES:%=$(outdir)/%)
23
24 $(outdir)/%.sh: %.sh $(config_make)
25         cat $< | sed $(sed-atvariables) > $@
26         chmod 755 $@
27
28 default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUTIN_FILES) 
29
30 INSTALLATION_OUT_SUFFIXES=1
31
32 # Avoid collapsed directory constructs '//'
33 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
34 INSTALLATION_DIR=$(etc)/postinstall
35 INSTALLATION_FILES=$(OUT_POSTINSTALLS)
36
37 INSTALLATION_OUT_DIR1=$(etc)/postremove
38 INSTALLATION_OUT_FILES1=$(OUT_POSTREMOVES)
39
40 endif
41