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