]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
* stepmake/stepmake/python-module-rules.make:
[lilypond.git] / cygwin / GNUmakefile
1 depth = ..
2
3 NAME = cygwin
4
5 EXTRA_DIST_FILES = README changelog mknetrel $(wildcard *.sh *.hint)
6
7 STEPMAKE_TEMPLATES = install install-out
8
9 include $(depth)/make/stepmake.make
10
11 # For cygwin builds only
12 ifneq ($(CYGWIN_BUILD),)
13
14 POST_INSTALLS=$(wildcard post-*.sh)
15 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
16
17 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
18 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
19
20 # profiles
21 $(outdir)/%.sh: %.sh
22         cat $< | sed $(sed-atvariables) > $@
23         chmod 755 $@
24
25 # Urg
26 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
27         cp $< $@
28         chmod 755 $@
29
30 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
31
32 INSTALLATION_OUT_SUFFIXES=1 2
33
34 # URG.
35 # By popular demand,
36 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
37 # The cygwin profile.d dir, however, is in /etc
38
39 # avoid collapsed directory constructs '//'
40 #etc=$(dir $(patsubst %/, %, $(dir $(prefix)/)))etc
41 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
42 INSTALLATION_DIR=$(etc)/postinstall
43 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
44
45 INSTALLATION_OUT_DIR1=$(etc)/profile.d
46 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
47
48 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
49 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
50
51 else
52
53 local-install:
54         @echo skipping
55
56 local-install-outfiles:
57         @echo skipping
58
59 endif
60