]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
* cygwin/GNUmakefile: [CYGWIN] Install bug-lilypond-cygwin. Typo
[lilypond.git] / cygwin / GNUmakefile
1 depth = ..
2
3 NAME = cygwin
4
5 EXTRA_DIST_FILES = changelog mknetrel $(wildcard *.sh *.hint)
6
7 SEXECUTABLES=bug-lilypond-cygwin
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 POST_INSTALLS=$(wildcard post-*.sh)
18 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
19
20 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
21 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
22
23 # profiles
24 $(outdir)/%.sh: %.sh
25         cat $< | sed $(sed-atvariables) > $@
26         chmod 755 $@
27
28 # Urg
29 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
30         cp $< $@
31         chmod 755 $@
32
33 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES) $(OUTIN_FILES) 
34
35 INSTALLATION_OUT_SUFFIXES=1 2
36
37 # Avoid collapsed directory constructs '//'
38 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
39 INSTALLATION_DIR=$(etc)/postinstall
40 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
41
42 INSTALLATION_OUT_DIR1=$(etc)/profile.d
43 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
44
45 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
46 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
47
48 endif
49