]> git.donarmstrong.com Git - lilypond.git/blobdiff - cygwin/GNUmakefile
* lily/change-iterator.cc (process): use find_existing_context().
[lilypond.git] / cygwin / GNUmakefile
index 60cc067dc307bb37a92f3c9692da8096eb1ed772..eaef83507837bf31b66004e22e01038071dbbf7b 100644 (file)
@@ -2,60 +2,55 @@ depth = ..
 
 NAME = cygwin
 
-EXTRA_DIST_FILES = README changelog mknetrel $(wildcard *.sh *.hint)
+MKNETRELS = $(wildcard mknetrel mknetrel.*[a-z])
+EXTRA_DIST_FILES = changelog $(MKNETRELS) $(wildcard *.hint)
 
-STEPMAKE_TEMPLATES = install install-out
+SEXECUTABLES=bug-lilypond-cygwin lily-wins
+STEPMAKE_TEMPLATES = install install-out script
 
-include $(depth)/make/stepmake.make 
+include $(depth)/make/stepmake.make
 
-# For cygwin builds only
-target=$(shell gcc -dumpmachine)
-ifeq ($(target),i686-pc-cygwin)
+# For Cygwin builds only
+ifneq ($(CYGWIN_BUILD),)
 
-POST_INSTALLS=$(wildcard post-*.sh)
-OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
+include $(stepdir)/executable-targets.make
+
+POSTINSTALLS=$(wildcard postinstall*.sh)
+OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
+
+POSTREMOVES=$(wildcard postremove*.sh)
+OUT_POSTREMOVES=$(POSTREMOVES:%=$(outdir)/%)
 
 PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
 
 # profiles
-$(outdir)/%.sh: %.sh
+$(outdir)/%.sh: %.sh $(config_make)
        cat $< | sed $(sed-atvariables) > $@
        chmod 755 $@
 
-# Urg
+# Get profile from buildscripts
 $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
        cp $< $@
        chmod 755 $@
 
-default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
-
-INSTALLATION_OUT_SUFFIXES=1 2
+default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUT_PROFILES) $(OUTIN_FILES) 
 
-# URG.
-# By popular demand,
-# LilyPond on windows is configured with --prefix=/usr/lilypond-x.y.x
-# The cygwin profile.d dir, however, is in /etc
+INSTALLATION_OUT_SUFFIXES=1 2 # 3
 
-# avoid collapsed directory constructs '//'
-#etc=$(dir $(patsubst %/, %, $(dir $(prefix)/)))etc
+# Avoid collapsed directory constructs '//'
 etc=$(patsubst %/, %, $(dir $(prefix)))/etc
 INSTALLATION_DIR=$(etc)/postinstall
-INSTALLATION_FILES=$(OUT_POST_INSTALLS)
+INSTALLATION_FILES=$(OUT_POSTINSTALLS)
 
 INSTALLATION_OUT_DIR1=$(etc)/profile.d
 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
 
-INSTALLATION_OUT_DIR2=$(datadir)/tex
-INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
-
-else
-
-local-install:
-       @echo skipping
+INSTALLATION_OUT_DIR2=$(etc)/postremove
+INSTALLATION_OUT_FILES2=$(OUT_POSTREMOVES)
 
-local-install-outfiles:
-       @echo skipping
+# INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/tex
+# INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
 
 endif