X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cygwin%2FGNUmakefile;h=7e25a64c5483a15a3681d5d54ae62d3a91e88009;hb=101b5dbd7018e185fb64c8dbd7589aec99395605;hp=e5610e3777155af5a4c6471abe5df523cf189044;hpb=46a3972bc05b0fbe77e1dcda58f5e2a83e71a79a;p=lilypond.git diff --git a/cygwin/GNUmakefile b/cygwin/GNUmakefile index e5610e3777..7e25a64c54 100644 --- a/cygwin/GNUmakefile +++ b/cygwin/GNUmakefile @@ -2,59 +2,32 @@ depth = .. NAME = cygwin -EXTRA_DIST_FILES = README changelog mknetrel $(wildcard *.sh *.hint) +MKNETRELS = mknetrel $(call src-wildcard,mknetrel.*[a-z]) +EXTRA_DIST_FILES = changelog $(MKNETRELS) $(call src-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=$(call src-wildcard,postinstall*.sh) +OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%) -# profiles -$(outdir)/%.sh: %.sh +$(outdir)/%.sh: %.sh $(config_make) cat $< | sed $(sed-atvariables) > $@ chmod 755 $@ -# Urg -$(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/$(outconfbase)/lilypond-profile - cp $< $@ - chmod 755 $@ - -default: $(OUT_POST_INSTALLS) $(OUT_PROFILES) - -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 -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 +default: $(OUT_POSTINSTALLS) $(OUTIN_FILES) -local-install-outfiles: - @echo skipping +# Avoid collapsed directory constructs '//' +etc=$(patsubst %/,%, $(dir $(prefix)))/etc +INSTALLATION_OUT_DIR=$(etc)/postinstall +INSTALLATION_OUT_FILES=$(OUT_POSTINSTALLS) endif