#urg default local-WWW target uses footify before its time;
# must add footify with txt-to-html target
-local-WWW: $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
+local-WWW: $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
copy-for-me:
$(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
depth = ../..
-STEPMAKE_TEMPLATES=documentation tex texinfo yolily-topdoc
+STEPMAKE_TEMPLATES=documentation tex texinfo
LOCALSTEPMAKE_TEMPLATES=lilypond ly
HTML_FILES=$(addprefix $(outdir)/, $(TEXI_FILES:.texi=.html) $(TELY_FILES:.tely=.html))
+#default: local-doc
include $(depth)/make/stepmake.make
-local-WWW: $(HTML_FILES)
+copy-to-top: $(TO_TOP_FILES)
+ $(foreach i, $(TO_TOP_FILES), \
+ cp $(i) $(depth)/ && ) true
+ -cp $(outdir)/*png $(outdir)/index.html $(depth) # don't fail if not making website
+
+###local-WWW: copy-to-top
+
+local-WWW: $(HTML_FILES) copy-to-top
# we want footers even if website builds (or is built) partly
$(MAKE) footify
endif
-local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES)
+local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES) info-dir
+
+local-WWW-clean: deep-WWW-clean
+
+deep-WWW-clean:
+ rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals
+
+info-dir:
$(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
$(MAKE) footify
$(MAKE) deep-footify
-# $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
-# $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
-# | sed "s!$(outdir)/!!g" > $(outdir)/index.html
-
-
$(outdir)/%.bib: %.bib
ln -f $< $@
rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals
-backdoc-WWW: $(outdir)/lilypond-internals/lilypond-internals.html
- $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
-
# when cross-compiling, we don't have lilypond
ifneq ($(CROSS),yes)
$(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
OUTCONF_FILES = $(OUTIN_FILES)
OUT_DIST_FILES = $(OUTIN_FILES)
-STEPMAKE_TEMPLATES = yolily-debian
+STEPMAKE_TEMPLATES = debian
include $(depth)/make/stepmake.make
{0, "version", 'v', _i ("print version number")},
{0, "verbose", 'V', _i ("verbose")},
{0, "warranty", 'w', _i ("show warranty and copyright")},
- {_i ("EXPR"), "evaluate", 'e',_i ("evalute EXPR as Scheme after .scm init is read")},
+ {_i ("EXPR"), "evaluate", 'e',_i ("evalute EXPR as Scheme after .scm init is read")},
{0,0,0,0}
};
all_fonts_global_p = new All_font_metrics (global_path.str ());
init_scheme_code_string += ")";
- gh_eval_str (init_scheme_code_string.ch_C());
+ gh_eval_str ((char *)init_scheme_code_string.ch_C());
int p=0;
const char *arg ;
export TFMFONTS=$(topdir)/mf/out:
export LILYPONDPREFIX:=$(depth)/
+export PYTHONPATH:=$(buildscript-dir)/$(outdir):$(PYTHONPATH)
+# guile load path?
the-script-dir=$(wildcard $(script-dir))
+include $(stepdir)/www-targets.make
+
+
.PHONY: download mutopia png ps scores tar
.PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps
.PRECIOUS: $(outdir)-letter/%.dvi $(outdir)-letter/%.ps
+
all: $(OUT_FILES)
local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
-local-web:
- $(MAKE) conf=www local-WWW
-
convert-ly: local-convert-ly
$(LOOP)
local-convert-ly:
- $(PYTHON) $(CONVERT_LY) -e *ly
+ $(PYTHON) $(CONVERT_LY) --edit --assume-old *ly
tar:
mkdir -p $(outdir)/$(tarball)
scores: $(score_ps)
$(MAKE) ps_examples="$<" ps
-#
-# <NAME> and -book targets only available through ly.make template makefile;
-# too scary to install in LilyPonds make yet.
-#
-#
-
-ifeq (0,1)
-#
-# Timothy's booklet
-#
-$(outdir)/%-book.ps: $(outdir)/%.ps
- psbook $< $<.1
- pstops '2:0L(11.45in,0.25in)+1L(11.45in,5.6in)' $<.1 $@
- rm -f $<.1
-
-#
-# Catch-all target: type `make foo' to make out/foo.ps,
-# or make `foo-book' to make out/foo-book.ps
-#
-%: $(outdir)/%.ps
- @echo Making $@ from $<
-endif
-
-
local-mutopia:
$(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
rm -f $(outdir)-letter/*
-local-help:
+local-help: local-mutopia-help
+
+local-mutopia-help:
@echo -e "\
<NAME> update $(outdir)/<NAME>.ps\n\
<NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
#
-
-#
-# mutopia-archive playground
-#
-
-
-# -> mutopia-vars.make
-MUTOPIA_MIRROR = http://www.mutopiaproject.org/ftp
-# ugh: doesn't work
-# mutopia-dir = $(pwd:%/mutopia/%=mutopia)
-mutopia-dir = $(shell pwd | sed 's@.*mutopia@@')
-wget-list = $(mutopia-examples:%=$(mutopia-dir)/%)
-
-local-remove-ly:
- -mv -f $(wildcard *.ly) $(outdir)
-
-remove-ly: local-remove-ly
- $(LOOP)
-
-local-download: $(mutopia-examples:%=%.ly)
- @echo downloading $<
-
-download: local-download
- $(LOOP)
-
-# -> mutopia-rules.make
-ifeq ($(zipped),)
-%.ly:
- wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-else
-%.zip:
- wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-
-%.ly: %-lys.zip
- unzip $<
-endif
-
-
LYM4_FILES = $(wildcard *.lym4)
EXTRA_DIST_FILES += $(FLY_FILES) $(SLY_FILES) $(LY_FILES) $(M4_FILES) $(LYM4_FILES)
-# WWW.make
-
ly_examples=$(addprefix $(outdir)/, $(addsuffix .ly.txt, $(examples)))
fly_examples=$(addprefix $(outdir)/, $(addsuffix .fly.txt, $(flexamples)))
sly_examples=$(addprefix $(outdir)/, $(addsuffix .sly.txt, $(slexamples)))
# title package specific targets
-.PHONY : check-dist-deps check-make-deps check-rpm-doc-deps check-html-deps check-www-doc check-rpm-icons
+.PHONY : check-dist-deps check-make-deps check-rpm-doc-deps check-html-deps check-web-doc check-rpm-icons
-check-html-deps:
- $(MAKE) -C $(depth)/Documentation html
+#check-html-deps:
+# $(MAKE) -C $(depth)/Documentation html
-check-www-doc:
- $(MAKE) CONFIGSUFFIX='www' -C Documentation outdirs
- $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
+#check-web-doc:
+# $(MAKE) CONFIGSUFFIX='www' -C Documentation outdirs
+# $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
# check-rpm-doc-deps:
# $(MAKE) -C $(depth)/Documentation gifs
-check-rpm-icons:
+#check-rpm-icons:
-check-make-deps:
- $(MAKE) -C $(depth)/make
+#check-make-deps:
+# $(MAKE) -C $(depth)/make
--- /dev/null
+$(outdir)/%: %
+ rm -f $@
+ ln $< $@
+
+$(outdir)/%: $(doc-dir)/%.in
+ rm -f $@
+ cat $< | sed 's%^% %' > $@
--- /dev/null
+
+default: $(OUTCONF_FILES)
+
+$(outdir)/control: $(addprefix $(outdir)/, $(BLURBS))
+
+
+# local-dist: default
default:
+include $(stepdir)/www-targets.make
local-WWW: $(OUTHTML_FILES) footify
-local-web:
- $(MAKE) out=www local-WWW
-
footify:
$(footify) $(sort $(wildcard $(outdir)/*.html out/*.html out-www/*.html))
@echo -e "\
all update everything\n\
clean remove all genated stuff in $(outdir)\n\
- config rerun configure\n\
- deb build Debian package\n\
default same as the empty target\n\
- diff generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
- . Options:\n\
- . from=0.1.74\n\
- . help==\n\
- . release==\n\
- . to=0.1.74.jcn2\n\
- dist roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
- distclean cleaner than clean (duh)\n\
- doc update all documentation\n\
exe update all executables\n\
help this help\n\
install install programs and data (prefix=$(prefix))\n\
lib update all libraries\n\
- release roll tarball and generate patch\n\
- rpm build RedHat package\n\
- po make new translation Portable Object database\n\
- po-replace do po-update and replace catalogs with msgmerged versions\n\
- po-update update translation Portable Object database\n\
- tar same as dist\n\
TAGS genarate tagfiles\n\
- zip build binary doze distribution\n\
\n\
Make may be invoked from any subdirectory\n\
-Note that all commands recurse into SUBSDIRS\n\
+Note that all commands recurse into SUBDIRS;\n\
+prepend \`local-' to do only cwd, eg: local-clean\n\
"\
#
local-help:
-doc: local-doc
- $(LOOP)
-
-local-doc:
-
local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
mkdir -p $(distdir)/$(localdir)
$(LN) $(DIST_FILES) $(distdir)/$(localdir)
$(foreach i, $(EXTRA_DOC_FILES),\
cp -r $(i) $(prefix)/doc/$(package) &&) true
-WWW: local-WWW
- $(LOOP)
-
-local-WWW:
-
include $(stepdir)/package.make
include $(outdir)/dummy.dep $(DEP_FILES)
# ugh. ugh ugh ugh
$(depth)/$(configuration).make: $(depth)/configure
- @echo "**************************************"
+ @echo "************************************************************"
@echo "configure changed! You should probably reconfigure manually."
- @echo "**************************************"
+ @echo "************************************************************"
(cd $(depth); ./config.status)
touch $@ # do something for multiple simultaneous configs.
-# -*-Makefile-*-
-# title Toplevel_rules.make
-
-# empty
-
+#empty
# -*-Makefile-*-
# title Toplevel_targets.make
+include $(stepdir)/www-targets.make
+
local-dist: configure
# urg!: this gets into every package (ie: yodl)
$(MAKE) INFILE=$< OUTFILE=$@ LINECOMMENT=dnl -f $(stepdir)/automatically-generated.sub.make
endif
-local-WWW: #index.html
-index.html: check-top-web NEWS
-## $(sed-version) < Documentation/topdocs/$(outdir)/topweb.html > $@
+$(package-icon):
+ $(MAKE) -C Documentation/pictures icon
+
+
+do-top-doc:
+ -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
+
-WWW-clean: local-WWW-clean
- $(MAKE) out='www' clean
+$(README_TXT_FILES): do-top-doc
-local-WWW-clean:
+local-clean:
+
+###check-top-web:
+### $(MAKE) -C Documentation/topdocs WWW
+#####
+
+####index.html: check-top-web NEWS
+
+local-dist: do-top-doc
dist:
rm -rf $(distdir)
-ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
rm -rf $(distdir)/
+#
+#
local-help:
-
+ @echo -e "\
+ config rerun configure\n\
+ deb build Debian package\n\
+ diff generate patch: $(depth)/$(outdir)/$(distname).diff.gz\n\
+ . Options:\n\
+ . from=0.1.74\n\
+ . help==\n\
+ . release==\n\
+ . to=0.1.74.jcn2\n\
+ dist roll tarball: $(depth)/$(outdir)/$(distname).tar.gz\n\
+ distclean cleaner than clean (duh)\n\
+ doc update all documentation\n\
+ release roll tarball and generate patch\n\
+ rpm build Red Hat package\n\
+ po make new translation Portable Object database\n\
+ po-replace do po-update and replace catalogs with msgmerged versions\n\
+ po-update update translation Portable Object database\n\
+ web update website in out-www\n\
+ web-clean clean out-www\n\
+\n\
+Some of these top level targets (diff, dist, release) can be issued\n\
+from anywhere in the source tree.\n\
+"\
+#
-# -*-Makefile-*-
-# title Toplevel_vars.make
# override Generic_vars.make:
-# do not dist ./Makefile (is copied from make/Toplevel.make)
-#
DIST_FILES := $(EXTRA_DIST_FILES)
-#
+
+TO_TOP_FILES=$(addprefix $(outdir)/, $(README_TOP_FILES))
+
+# urg?
+include $(stepdir)/documentation-vars.make
--- /dev/null
+#empty
\ No newline at end of file
--- /dev/null
+
+local-WWW:
+
+ifneq ($(strip $(depth)),.)
+WWW: local-WWW
+ $(LOOP)
+
+WWW-clean: local-WWW-clean
+ $(LOOP)
+endif
+
+local-web:
+ $(MAKE) out=www local-WWW
+
+web:
+ $(MAKE) out=www WWW
+
+local-WWW-clean:
+ rm -f $(outdir)/*
+
+local-web-clean:
+ $(MAKE) out=www local-WWW-clean
+
+web-clean:
+ $(MAKE) out=www WWW-clean
+
+
--- /dev/null
+#empty
\ No newline at end of file