]> 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 = 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 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
43 INSTALLATION_DIR=$(etc)/postinstall
44 INSTALLATION_FILES=$(OUT_POST_INSTALLS)
45
46 INSTALLATION_OUT_DIR1=$(etc)/profile.d
47 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
48
49 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
50 INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
51
52 else
53
54 local-install:
55         @echo skipping
56
57 local-install-outfiles:
58         @echo skipping
59
60 endif
61