]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
* cygwin/GNUmakefile:
[lilypond.git] / cygwin / GNUmakefile
1 depth = ..
2
3 NAME = cygwin
4
5 EXTRA_DIST_FILES = changelog mknetrel $(wildcard *.hint)
6
7 SEXECUTABLES=bug-lilypond-cygwin lily-wins
8 STEPMAKE_TEMPLATES = install install-out script
9
10 include $(depth)/make/stepmake.make
11
12 # For Cygwin builds only
13 ifneq ($(CYGWIN_BUILD),)
14
15 include $(stepdir)/executable-targets.make
16
17 POSTINSTALLS=$(wildcard postinstall*.sh)
18 OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
19
20 POSTREMOVES=$(wildcard postremove*.sh)
21 OUT_POSTREMOVES=$(POSTREMOVES:%=$(outdir)/%)
22
23 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
24 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
25
26 # profiles
27 $(outdir)/%.sh: %.sh $(config_make)
28         cat $< | sed $(sed-atvariables) > $@
29         chmod 755 $@
30
31 # Get profile from buildscripts
32 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
33         cp $< $@
34         chmod 755 $@
35
36 default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUT_PROFILES) $(OUTIN_FILES) 
37
38 INSTALLATION_OUT_SUFFIXES=1 2 # 3
39
40 # Avoid collapsed directory constructs '//'
41 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
42 INSTALLATION_DIR=$(etc)/postinstall
43 INSTALLATION_FILES=$(OUT_POSTINSTALLS)
44
45 INSTALLATION_OUT_DIR1=$(etc)/profile.d
46 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
47
48 INSTALLATION_OUT_DIR2=$(etc)/postremove
49 INSTALLATION_OUT_FILES2=$(OUT_POSTREMOVES)
50
51 # INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/tex
52 # INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
53
54 endif
55