]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/GNUmakefile
* Documentation/user/refman.itely: Compile fix for \mark #'(music ...).
[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 target=$(shell gcc -dumpmachine)
13 ifeq ($(target),i686-pc-cygwin)
14
15 POST_INSTALLS=$(wildcard post-*.sh)
16 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
17
18 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
19 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
20
21 # profiles
22 $(outdir)/%.sh: %.sh
23         cat $< | sed $(sed-atvariables) > $@
24         chmod 755 $@
25
26 # Urg
27 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
28         cp $< $@
29         chmod 755 $@
30
31 default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
32
33 INSTALLATION_OUT_SUFFIXES=1 2
34
35 # URG.
36 # By popular demand,
37 # LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
38 # The cygwin profile.d dir, however, is in /etc
39
40 # avoid collapsed directory constructs '//'
41 etc=$(dir $(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=$(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