]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
release commit
[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 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
25 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
26
27 # profiles
28 $(outdir)/%.sh: %.sh $(config_make)
29         cat $< | sed $(sed-atvariables) > $@
30         chmod 755 $@
31
32 # Get profile from buildscripts
33 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
34         cp $< $@
35         chmod 755 $@
36
37 default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUT_PROFILES) $(OUTIN_FILES) 
38
39 INSTALLATION_OUT_SUFFIXES=1 2 # 3
40
41 # Avoid collapsed directory constructs '//'
42 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
43 INSTALLATION_DIR=$(etc)/postinstall
44 INSTALLATION_FILES=$(OUT_POSTINSTALLS)
45
46 INSTALLATION_OUT_DIR1=$(etc)/profile.d
47 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
48
49 INSTALLATION_OUT_DIR2=$(etc)/postremove
50 INSTALLATION_OUT_FILES2=$(OUT_POSTREMOVES)
51
52 # INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/tex
53 # INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
54
55 endif
56