]> git.donarmstrong.com Git - lilypond.git/blobdiff - cygwin/GNUmakefile
* cygwin/GNUmakefile (INSTALLATION_OUT_SUFFIXES): Remove profile
[lilypond.git] / cygwin / GNUmakefile
index e5610e3777155af5a4c6471abe5df523cf189044..ecfe3b5171b45c3c200508d3c80f15aba7e463b2 100644 (file)
@@ -2,59 +2,36 @@ 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
 
-# For cygwin builds only
+# For Cygwin builds only
 ifneq ($(CYGWIN_BUILD),)
 
-POST_INSTALLS=$(wildcard post-*.sh)
-OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
+include $(stepdir)/executable-targets.make
 
-PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
-OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
+POSTINSTALLS=$(wildcard postinstall*.sh)
+OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
 
-# profiles
-$(outdir)/%.sh: %.sh
-       cat $< | sed $(sed-atvariables) > $@
-       chmod 755 $@
+POSTREMOVES=$(wildcard postremove*.sh)
+OUT_POSTREMOVES=$(POSTREMOVES:%=$(outdir)/%)
 
-# Urg
-$(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile
-       cp $< $@
-       chmod 755 $@
+default: $(OUT_POSTINSTALLS) $(OUT_POSTREMOVES) $(OUTIN_FILES) 
 
-default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
+INSTALLATION_OUT_SUFFIXES=1
 
-INSTALLATION_OUT_SUFFIXES=1 2
-
-# 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
-
-# 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_OUT_DIR1=$(etc)/profile.d
-INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
-
-INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/tex
-INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
-
-else
-
-local-install:
-       @echo skipping
+INSTALLATION_FILES=$(OUT_POSTINSTALLS)
 
-local-install-outfiles:
-       @echo skipping
+INSTALLATION_OUT_DIR1=$(etc)/postremove
+INSTALLATION_OUT_FILES1=$(OUT_POSTREMOVES)
 
 endif