]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.4
authorfred <fred>
Sun, 24 Mar 2002 20:13:50 +0000 (20:13 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:13:50 +0000 (20:13 +0000)
30 files changed:
Documentation/man/GNUmakefile [new file with mode: 0644]
intl/GNUmakefile [new file with mode: 0644]
make/GNUmakefile [new file with mode: 0644]
make/mutopia-vars.make [new file with mode: 0644]
make/substitute.make [new file with mode: 0644]
mf/GNUmakefile [new file with mode: 0644]
mutopia/Coriolan/GNUmakefile [new file with mode: 0644]
mutopia/GNUmakefile [new file with mode: 0644]
mutopia/J.S.Bach/GNUmakefile [new file with mode: 0644]
mutopia/J.S.Bach/Petites-Preludes/GNUmakefile [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/GNUmakefile [new file with mode: 0644]
mutopia/W.A.Mozart/GNUmakefile [new file with mode: 0644]
po/GNUmakefile [new file with mode: 0644]
stepmake/Documentation/GNUmakefile [new file with mode: 0644]
stepmake/NEWS
stepmake/bin/GNUmakefile [new file with mode: 0644]
stepmake/make/GNUmakefile [new file with mode: 0644]
stepmake/make/generic-rules.make [new file with mode: 0644]
stepmake/make/generic-targets.make [new file with mode: 0644]
stepmake/make/stepmake.make [new file with mode: 0644]
stepmake/make/substitute.make [new file with mode: 0644]
stepmake/make/toplevel-version.make [new file with mode: 0644]
stepmake/make/toplevel.make.in [new file with mode: 0644]
stepmake/stepmake/GNUmakefile [new file with mode: 0644]
stepmake/stepmake/documentation-rules.make [new file with mode: 0644]
stepmake/stepmake/documentation-targets.make [new file with mode: 0644]
stepmake/stepmake/generic-vars.make [new file with mode: 0644]
stepmake/stepmake/include.make [new file with mode: 0644]
stepmake/stepmake/toplevel-targets.make [new file with mode: 0644]
tex/GNUmakefile [new file with mode: 0644]

diff --git a/Documentation/man/GNUmakefile b/Documentation/man/GNUmakefile
new file mode 100644 (file)
index 0000000..efac06a
--- /dev/null
@@ -0,0 +1,30 @@
+# Documentation/man/Makefile
+
+depth = ../..
+
+STEPMAKE_TEMPLATES=documentation
+SECTION=1
+MANTXT = $(addprefix $(outdir)/, $(addsuffix .txt,$(basename $(TEXINFO_FILES) .texinfo)))
+MANGROFF = $(addprefix $(outdir)/, $(addsuffix .$(SECTION),$(basename $(YO_FILES) .yo)))
+
+OUTTEXINFO_FILES= $(addprefix $(outdir)/, $(addsuffix .texinfo,$(basename $(YO_FILES) .yo)))
+
+OUT_DIST_FILES += $(MANGROFF)
+
+include $(depth)/make/stepmake.make 
+
+default: $(MANGROFF)
+
+texinfo: $(OUTTEXINFO_FILES)
+
+
+
+INSTALLATION_OUT_FILES=$(MANGROFF)
+INSTALLATION_OUT_DIR=$(mandir)/man$(SECTION)
+
+include $(stepdir)/install-outfiles.make
+
+local-WWW: $(MANGROFF:.1=.html)
+       $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'Manual pages for LilyPond' $(YO_FILES) \
+         | sed "s!$(outdir)/!!g" > $(outdir)/index.html
+       $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
diff --git a/intl/GNUmakefile b/intl/GNUmakefile
new file mode 100644 (file)
index 0000000..0bce164
--- /dev/null
@@ -0,0 +1,50 @@
+# intl/Makefile
+
+depth = ..
+
+NAME = intl
+
+
+# MODULE_CXXFLAGS += -D_REENTRANT
+MAINTARGET = $(LIBRARY)# huh?
+
+SED_FILES = $(wildcard *.sed)
+
+# should be set by configure...
+URG_DEFINES = -DGNULOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(localedir):\"
+EXTRA_CFLAGS = -I. $(URG_DEFINES)
+
+EXTRA_DIST_FILES = Makefile.in.dist cat-compat.c.dist ChangeLog libintl.inst $(SED_FILES)
+
+
+
+STEPMAKE_TEMPLATES=c
+include $(depth)/make/stepmake.make
+
+default:
+       @echo "to install libintl type 'make lib; make install-lib'"
+
+lib:  $(LIBRARY)
+LIBINTL = $(LIBRARY)
+
+install-lib: $(LIBINTL)
+# localinstall: $(LIBINTL)
+       $(INSTALL) -d $(includedir)
+#      $(INSTALL) libintl.h $(includedir)
+       $(INSTALL) libintl.inst $(includedir)/libintl.h
+ifeq ($(LIB_SUFFIX),.so)
+       $(INSTALL) -d $(libdir)
+       $(INSTALL) $(LIBINTL).$(VERSION) $(libdir)
+       ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX).$(MAJOR_VERSION)
+       ln -s $(LIB_PREFIX)intl$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)intl$(LIB_SUFFIX)
+else
+       $(INSTALL) -d $(libdir)
+       echo libintl: $(LIBINTL)
+       echo libdir: $(libdir)
+       $(INSTALL) $(LIBINTL) $(libdir)
+endif
+
+localuninstall:
+       rm -f $(inludedir)/libintl.h
+       rm -f $(libdir)/libintl.{so*,a}
+
diff --git a/make/GNUmakefile b/make/GNUmakefile
new file mode 100644 (file)
index 0000000..441e932
--- /dev/null
@@ -0,0 +1,10 @@
+# file    make/Makefile 
+
+depth = ..
+STEPMAKE_TEMPLATES=makedir
+BLURBS=BLURB # COPERTINA FLAPTEKST
+
+include $(depth)/make/stepmake.make 
+
+
+
diff --git a/make/mutopia-vars.make b/make/mutopia-vars.make
new file mode 100644 (file)
index 0000000..92ef7c0
--- /dev/null
@@ -0,0 +1,27 @@
+
+# UGH UGH
+include $(make-dir)/lilypond-vars.make
+
+FLY_FILES = $(wildcard *.fly)
+LY_FILES = $(wildcard *.ly)
+M4_FILES = $(wildcard *.m4)
+LYM4_FILES = $(wildcard *.lym4)
+EXTRA_DIST_FILES += $(FLY_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)))
+
+all_examples=$(flexamples) $(examples)
+
+ps_examples=$(addprefix $(outdir)/, $(addsuffix .ps.gz, $(all_examples)))
+gif_examples=$(addprefix $(outdir)/, $(addsuffix .gif, $(all_examples)))
+
+html_subdirs=$(addprefix --subdirs ,$(SUBDIRS))
+
+
+name-stem= $(notdir $(basename $<))
+
+OUT_FILES = $(addprefix $(outdir)/,$(M4_FILES:%.m4=%)) \
+ $(addprefix $(outdir)/,$(LYM4_FILES:%.lym4=%.ly))
diff --git a/make/substitute.make b/make/substitute.make
new file mode 100644 (file)
index 0000000..6e80db5
--- /dev/null
@@ -0,0 +1,20 @@
+# make/Substitute.make
+
+#guh
+include $(stepdir)/substitute-vars.make
+
+ATVARIABLES = \
+  BASH\
+  DATE\
+  date\
+  DIR_DATADIR\
+  PACKAGE\
+  package\
+  PERL\
+  PYTHON\
+  SHELL\
+  TOPLEVEL_VERSION\
+  step-bindir\
+  abs-step-bindir\
+
+
diff --git a/mf/GNUmakefile b/mf/GNUmakefile
new file mode 100644 (file)
index 0000000..07d99c1
--- /dev/null
@@ -0,0 +1,49 @@
+# mf/Makefile
+
+depth = ..
+
+STEPMAKE_TEMPLATES=metafont
+
+EXTRA_DIST_FILES += TODO README
+
+FET_FILES = $(wildcard feta[0-9]*.mf)
+
+LYTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.ly))
+LOG_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.log))
+TEXTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.tex))
+AFM_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.afm))
+
+ALL_GEN_FILES=$(LYTABLES) $(TEXTABLES) $(LOG_FILES) $(AFM_FILES)
+
+OUT_DIST_FILES += $(AFM_FILES)
+
+include $(depth)/make/stepmake.make 
+
+default: $(ALL_GEN_FILES)
+
+
+$(outdir)/%.afm $(outdir)/%.ly $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log
+       $(PYTHON) $(buildscripts)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --ly $(outdir)/$(<F:.log=.ly) --afm $(outdir)/$(<F:.log=.afm) --tex $(outdir)/$(<F:.log=.tex) $<
+
+
+TEXINSTALL=$(MAKE) INSTALLATION_OUT_DIR=$(TEXDIR)/lilypond depth=.. INSTALLATION_OUT_FILES="$(TEXTABLES)" -f $(stepdir)/install-outfiles.sub.make $@
+
+AFMINSTALL=$(MAKE) depth=.. INSTALLATION_OUT_DIR=$(datadir) INSTALLATION_OUT_FILES="$(AFM_FILES)" -f $(stepdir)/install-outfiles.sub.make $@
+
+LYINSTALL=$(MAKE) depth=.. INSTALLATION_OUT_DIR=$(datadir) INSTALLATION_OUT_FILES="$(LYTABLES)" -f $(stepdir)/install-outfiles.sub.make $@
+
+localinstall: $(ALL_GEN_FILES)
+       $(TEXINSTALL)
+       $(LYINSTALL)
+       $(AFMINSTALL)
+
+localuninstall:
+       $(TEXINSTALL)
+       $(LYINSTALL)
+       $(AFMINSTALL)
+
+INSTALLATION_DIR=$(MFDIR)/public/lilypond
+INSTALLATION_FILES=$(MF_FILES)
+
+include $(stepdir)/installfiles.make
+
diff --git a/mutopia/Coriolan/GNUmakefile b/mutopia/Coriolan/GNUmakefile
new file mode 100644 (file)
index 0000000..90bb711
--- /dev/null
@@ -0,0 +1,12 @@
+# mutopia/Makefile
+
+depth = ../..
+
+# do Coriolan if you have plenty RAM / CPU
+examples=coriolan oboi-part viola-part
+# examples= oboi-part viola-part
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/make/stepmake.make
+
diff --git a/mutopia/GNUmakefile b/mutopia/GNUmakefile
new file mode 100644 (file)
index 0000000..5ae8694
--- /dev/null
@@ -0,0 +1,15 @@
+# mutopia/Makefile
+
+depth = ..
+
+SUBDIRS = J.S.Bach Coriolan W.A.Mozart
+
+examples=standchen gallina
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/make/stepmake.make
+
+EXTRA_DIST_FILES +=  TODO
+
+
+
diff --git a/mutopia/J.S.Bach/GNUmakefile b/mutopia/J.S.Bach/GNUmakefile
new file mode 100644 (file)
index 0000000..c5f8a88
--- /dev/null
@@ -0,0 +1,13 @@
+# mutopia/J.S.Bach/Makefile
+
+depth = ../..
+
+SUBDIRS = Petites-Preludes Solo-Cello-Suites 
+EXTRA_DIST_FILES=
+
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+examples=wtk1-fugue2
+
+include $(depth)/make/stepmake.make
+
diff --git a/mutopia/J.S.Bach/Petites-Preludes/GNUmakefile b/mutopia/J.S.Bach/Petites-Preludes/GNUmakefile
new file mode 100644 (file)
index 0000000..e1d72d7
--- /dev/null
@@ -0,0 +1,10 @@
+# mutopia/J.S.Bach/Petites-Preludes/Makefile
+
+depth = ../../..
+
+EXTRA_DIST_FILES=
+
+examples=preludes-2
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/make/stepmake.make
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/GNUmakefile b/mutopia/J.S.Bach/Solo-Cello-Suites/GNUmakefile
new file mode 100644 (file)
index 0000000..18e9385
--- /dev/null
@@ -0,0 +1,10 @@
+# mutopia/J.S.Bach/Solo-Cello-Suites/Makefile
+
+depth = ../../..
+
+EXTRA_DIST_FILES=
+
+examples=scsii-cello
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/make/stepmake.make
diff --git a/mutopia/W.A.Mozart/GNUmakefile b/mutopia/W.A.Mozart/GNUmakefile
new file mode 100644 (file)
index 0000000..d8a0eeb
--- /dev/null
@@ -0,0 +1,10 @@
+# mutopia/W.A.Mozart
+
+depth = ../..
+
+examples=cadenza
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/make/stepmake.make
+
+
diff --git a/po/GNUmakefile b/po/GNUmakefile
new file mode 100644 (file)
index 0000000..8dc71cb
--- /dev/null
@@ -0,0 +1,32 @@
+# title           makefile for po
+# file    po/Makefile 
+
+depth = ..
+
+NAME = lilypond
+MODULE_NAME = po
+
+PO_FILES = $(wildcard *.po)
+MO_FILES = $(addprefix $(outdir)/, $(PO_FILES:.po=.mo))
+HELP_CATALOGS = $(PO_FILES:%.po=%)
+CATALOGS = $(HELP_CATALOGS:lilypond=)
+EXTRA_DIST_FILES = TODO $(PO_FILES)
+
+include $(depth)/make/stepmake.make 
+include $(stepdir)/po-rules.make
+
+default: $(MO_FILES)
+
+localinstall: $(MO_FILES)
+       for i in $(CATALOGS); do \
+         $(INSTALL) -d $(localedir)/$$i/LC_MESSAGES; \
+         $(INSTALL) -m 644 $(outdir)/$$i.mo \
+         $(localedir)/$$i/LC_MESSAGES/$(package).mo; \
+       done
+
+localuninstall:
+       for i in $(CATALOGS); do \
+         rm -f $(localedir)/$$i/LC_MESSAGES/$(package).mo; \
+         rmdir $(localedir)/$$i/LC_MESSAGES || true; \
+       done
+
diff --git a/stepmake/Documentation/GNUmakefile b/stepmake/Documentation/GNUmakefile
new file mode 100644 (file)
index 0000000..c49eec6
--- /dev/null
@@ -0,0 +1,24 @@
+# Documentation/Makefile
+
+depth = ..
+
+
+OUTTXT_FILES = $(OUTYO_FILES:.yo=.txt) $(OUTIN_FILES:.yo=.txt)
+EXTRA_DIST_FILES = 
+SUBDIRS=topdocs
+
+
+STEPMAKE_TEMPLATES=documentation
+
+include $(depth)/make/stepmake.make 
+
+default: do-doc
+
+do-doc: $(OUTTXT_FILES)
+
+# ugh
+check-doc-deps: do-doc
+       true
+
+doc: do-doc
+
index 5578428a8cb9b9b1fa811a891810b6521a1aa970..75d1d7809f17201490ee521a9fe4747223b2f1e2 100644 (file)
@@ -1,3 +1,9 @@
+pl 45
+       - Foo_rules.make -> foo-rules.make
+
+pl 44
+       - split: Toplevel.make, debian/Makefile, Documentation/topdocs/Makefile
+
 pl 43
        - grand split up in targets/rules/variables.  The vars should be before rules!!
 pl 42
diff --git a/stepmake/bin/GNUmakefile b/stepmake/bin/GNUmakefile
new file mode 100644 (file)
index 0000000..36d1646
--- /dev/null
@@ -0,0 +1,10 @@
+# bin/Makefile
+
+depth = ..
+
+EXTRA_DIST_FILES = install-sh config.sub config.guess
+STEPMAKE_TEMPLATES=script
+
+include $(depth)/make/stepmake.make 
+
+
diff --git a/stepmake/make/GNUmakefile b/stepmake/make/GNUmakefile
new file mode 100644 (file)
index 0000000..bb5632d
--- /dev/null
@@ -0,0 +1,11 @@
+# file    make/Makefile 
+
+depth = ..
+STEPMAKE_TEMPLATES=makedir
+BLURBS=BLURB # COPERTINA FLAPTEKST
+
+
+include $(depth)/make/stepmake.make 
+
+
+
diff --git a/stepmake/make/generic-rules.make b/stepmake/make/generic-rules.make
new file mode 100644 (file)
index 0000000..99d118e
--- /dev/null
@@ -0,0 +1,12 @@
+# title           package specific rules
+# file    make/Rules.lilymake.make
+
+#UGH
+
+include $(depth)/make/substitute.make
+
+$(outdir)/%: %.in
+       rm -f $@
+       cat $< | $(sed-atfiles) | $(sed-atvariables) > $@
+
+
diff --git a/stepmake/make/generic-targets.make b/stepmake/make/generic-targets.make
new file mode 100644 (file)
index 0000000..790abd7
--- /dev/null
@@ -0,0 +1,24 @@
+# title           package specific targets
+# file    make/Targets.make
+
+.PHONY : check-dist-deps check-make-deps check-rpm-doc-deps check-html-deps check-www-doc check-rpm-icons
+
+check-html-deps:
+       $(MAKE) -C $(depth)/Documentation html
+
+check-www-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-make-deps:
+       $(MAKE) -C $(depth)/make
+
+# urg urg
+$(configheader): $(depth)/$(configuration).hh
+       cp $< $@
+
diff --git a/stepmake/make/stepmake.make b/stepmake/make/stepmake.make
new file mode 100644 (file)
index 0000000..9b114e1
--- /dev/null
@@ -0,0 +1,39 @@
+# make/Stepmake.make
+
+include $(depth)/make/toplevel-version.make
+
+# Don't try to outsmart us, you puny computer!
+ifeq (0,${MAKELEVEL})
+  MAKE:=$(MAKE) --no-builtin-rules
+endif
+
+ifndef config
+  configuration=config
+else
+  configuration=config-$(config)
+endif
+
+include $(depth)/$(configuration).make
+
+ifdef CONFIGSUFFIX
+outdir=out-$(CONFIGSUFFIX)
+else
+outdir=out
+endif
+
+stepdir = $(depth)/stepmake
+
+LOCALSTEPMAKE_TEMPLATES:=generic $(LOCALSTEPMAKE_TEMPLATES)
+STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES) 
+
+default:
+
+include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES))) 
+include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES))) 
+include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES))) 
+include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES))) 
+include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES))) 
+include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES))) 
+
+
+
diff --git a/stepmake/make/substitute.make b/stepmake/make/substitute.make
new file mode 100644 (file)
index 0000000..5c12e73
--- /dev/null
@@ -0,0 +1,18 @@
+# Substitute.make
+
+include $(stepdir)/substitute-vars.make
+ATVARIABLES = \
+  BASH\
+  DATE\
+  date\
+  DIR_DATADIR\
+  PACKAGE\
+  package\
+  PERL\
+  PYTHON\
+  SHELL\
+  TOPLEVEL_VERSION\
+  step-bindir\
+  abs-step-bindir\
+
+
diff --git a/stepmake/make/toplevel-version.make b/stepmake/make/toplevel-version.make
new file mode 100644 (file)
index 0000000..c6711a8
--- /dev/null
@@ -0,0 +1,7 @@
+
+include $(depth)/VERSION
+topleveL_MAJOR_VERSION:=$(MAJOR_VERSION)
+TOPLEVEL_MINOR_VERSION:=$(MINOR_VERSION)
+TOPLEVEL_PATCH_LEVEL:=$(PATCH_LEVEL)
+# use to send patches, always empty for released version:
+TOPLEVEL_MY_PATCH_LEVEL:=$(MY_PATCH_LEVEL)
diff --git a/stepmake/make/toplevel.make.in b/stepmake/make/toplevel.make.in
new file mode 100644 (file)
index 0000000..4541064
--- /dev/null
@@ -0,0 +1,33 @@
+# -*-Makefile-*-
+# title         specific top level makefile for StepMake
+
+# subdir level:
+#
+depth = .
+#
+
+# descent order into subdirectories:
+#
+SUBDIRS = bin make stepmake Documentation
+#
+
+# bootstrap stepmake:
+#
+#
+
+# list of distribution files:
+#
+SCRIPTS = configure aclocal.m4
+README_FILES = NEWS README TODO
+README_TXT_FILES = AUTHORS.txt INSTALL.txt
+EXTRA_DIST_FILES = $(IN_FILES) VERSION $(README_FILES)  $(SCRIPTS) 
+NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
+
+#
+
+# bootstrap stepmake:
+#
+STEPMAKE_TEMPLATES=toplevel
+include $(depth)/make/stepmake.make 
+#
+
diff --git a/stepmake/stepmake/GNUmakefile b/stepmake/stepmake/GNUmakefile
new file mode 100644 (file)
index 0000000..72d8b80
--- /dev/null
@@ -0,0 +1,18 @@
+# title           makefile for stepmake
+
+# subdir level:
+#
+depth = ..
+#
+
+# descent order into subdirectories:
+#
+SUBDIRS =
+#
+
+STEPMAKE_TEMPLATES=makedir
+
+
+# bootstrap stepmake:
+#
+-include $(depth)/make/stepmake.make 
diff --git a/stepmake/stepmake/documentation-rules.make b/stepmake/stepmake/documentation-rules.make
new file mode 100644 (file)
index 0000000..1f6d773
--- /dev/null
@@ -0,0 +1,24 @@
+# Docrules.make
+
+# special rules for the documentation section.
+# There are too many to add to the general rules
+
+.SUFFIXES: .1 .data .html .gif .xpm .tex .txt
+
+$(outdir)/%.gif: %.xpm
+       xpmtoppm $< | ppmtogif > $@
+
+$(outdir)/%.txt: $(outdir)/%.1
+       troff -man -Tascii $< | grotty -b -u -o > $@
+
+#urg should generalise and move Lilypond -> StepMake
+$(outdir)/%.html: %.data $(depth)/VERSION
+       $(PYTHON) $(step-bindir)/table-to-html.py --package=$(topdir) -o $@ $<
+       $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
+
+$(outdir)/%.tex: %.data $(depth)/VERSION
+       $(PYTHON) $(step-bindir)/table-to-html.py --package=$(topdir) -o $@ --latex $<
+
+include $(stepdir)/yodl-rules.make
+include $(stepdir)/texinfo-rules.make
+
diff --git a/stepmake/stepmake/documentation-targets.make b/stepmake/stepmake/documentation-targets.make
new file mode 100644 (file)
index 0000000..58c668d
--- /dev/null
@@ -0,0 +1,42 @@
+
+default:
+
+do-doc: $(OUTTXT_FILES) 
+
+# ugh. FIXME
+ifeq ($(strip $(README_TOP_FILES)),)
+readme-top_FILES-html:
+readme-top_FILES-txt:
+else
+
+readme-top_FILES-txt:
+       $(foreach i, $(README_TOP_FILES), \
+         cp $(depth)/$(i) $(outdir)/$(i).txt && ) true
+       
+readme-top_FILES-html:
+       $(foreach i, $(README_TOP_FILES), \
+         $(SHELL) $(step-bindir)/text2html.sh $(outdir)/$(i).txt $(outdir)/$(i).html && \
+         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/../index.html $(outdir)/$(i).html && ) true
+endif
+
+local-WWW: readme-top_FILES-txt readme-top_FILES-html $(OUTHTML_FILES) $(OUTREADME_HTML_FILES) 
+       echo $^ > $(depth)/wwwlist
+
+doc: do-doc
+
+# what to do here?
+ifneq ($(strip $(INFO_FILES)),)
+
+INFOINSTALL=$(MAKE) INSTALLATION_OUT_DIR=$(infodir) depth=$(depth) INSTALLATION_OUT_FILES="$(INFO_FILES)" -f $(stepdir)/install-outfiles.sub.make $@
+
+$(outdir)/$(package).info: check-texinfo-deps $(OUTTEXINFO_FILES)
+       $(MAKEINFO) -o $@ $(outdir)/topinfo.texinfo
+
+localinstall: # $(INFO_FILES)
+       -$(INSTALL) -d $(infodir)
+       $(INFOINSTALL)
+localuninstall:
+       $(INFOINSTALL)
+
+endif
+
diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make
new file mode 100644 (file)
index 0000000..223c59d
--- /dev/null
@@ -0,0 +1,140 @@
+# title           generic variables
+# file    make/Variables.make
+#
+# do not change this file for site-wide extensions; please use 
+# make/$(outdir)/Site.make; 
+#
+# Any change in files in this directory (make/) would be distributed, if 
+# you do make dist 
+
+# directory names:
+
+# depth from group-dir
+# not eh, normally used
+DEPTH = $(depth)/$(package-depth)
+
+topdir := $(shell cd $(depth); pwd)
+pwd := $(shell pwd)
+
+
+# derived names
+ifeq ($(distdir),)
+  distdir = $(depth)/$(outdir)/$(DIST_NAME)
+  DIST_NAME = $(package)-$(TOPLEVEL_VERSION)
+endif
+distname = $(package)-$(TOPLEVEL_VERSION)
+
+
+
+
+# obsolete?
+makeout = $(depth)/make/$(outdir)
+docout = $(depth)/Documentation/$(outdir)
+binout = $(depth)/bin/$(outdir)
+
+doc-dir = $(depth)/Documentation
+po-dir = $(depth)/po
+
+# sort-out which of these are still needed
+#
+$(package)_bindir = $(depth)/bin
+step-bindir = $(depth)/$(stepmake)/bin
+abs-step-bindir = $(topdir)/$(stepmake)/bin
+#
+group-dir = $(shell cd $(DEPTH)/..; pwd)
+release-dir = $(group-dir)/releases
+patch-dir = $(group-dir)/patches
+#
+# i have in $HOME/.rpmrc
+#     topdir: /home/fred/usr/src/Redhat
+#
+rpm-sources = $(release-dir)
+rpm-build = $(group-dir)/RedHat/BUILD
+#
+
+
+# need to be defined in local Makefiles:
+#
+FOOBAR = 
+# the version:
+#
+ifneq ($(MY_PATCH_LEVEL),$(FOOBAR))
+VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL).$(MY_PATCH_LEVEL)
+else
+VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
+endif
+
+ifneq ($(TOPLEVEL_MY_PATCH_LEVEL),$(FOOBAR))
+TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL).$(TOPLEVEL_MY_PATCH_LEVEL)
+else
+TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)
+endif
+
+
+
+# clean file lists:
+#
+ERROR_LOG = 2> /dev/null
+SILENT_LOG = 2>&1 >  /dev/null
+date := $(shell date +%x)      #duplicated?
+
+# compile and link options:
+#
+ARFLAGS = ru
+
+INCLUDES =  include $(outdir) $($(PACKAGE)_INCLUDES)
+LDFLAGS = $(ILDFLAGS) $(USER_LDFLAGS) $(EXTRA_LDFLAGS) $(MODULE_LDFLAGS) $($(PACKAGE)_LDFLAGS)
+
+MODULE_LIBES=$(addsuffix /$(outdir)/library.a, $(MODULE_LIBS))
+LOADLIBES = $(MODULE_LIBES) $($(PACKAGE)_LIBES) $(EXTRA_LIBES)
+# urg: for windows ?
+# LOADLIBES = $(MODULE_LIBES) $($(PACKAGE)_LIBES) $(EXTRA_LIBES) -lstdc++
+#
+
+# macro compiler:
+#
+M4 = m4
+# 
+
+#
+LD_COMMAND = $(LD) $(LDFLAGS) -o $@
+#
+
+# dependencies:
+#
+depfile = $(outdir)/$(subst .o,.dep,$(notdir $@))#
+DODEP=rm -f $(depfile); DEPENDENCIES_OUTPUT="$(depfile) $(outdir)/$(notdir $@)"
+#
+
+
+# generic target names:
+#
+ifdef NAME
+EXECUTABLE = $(outdir)/$(NAME)$(EXE)
+else
+EXECUTABLE =
+endif
+
+EXECUTABLES = $(notdir $(EXECUTABLE))
+
+
+#
+
+#replace to do stripping of certain objects
+STRIPDEBUG=true 
+
+DIST_FILES=$(EXTRA_DIST_FILES) GNUmakefile $(ALL_SOURCES)
+DOCDIR=$(depth)/$(outdir)
+
+
+STRIP=strip --strip-debug
+ifdef stablecc
+ STABLEOBS=$(addprefix $(outdir)/,$(stablecc:.cc=.o))
+endif
+
+# substitute $(STRIP) in Site.make if you want stripping
+DO_STRIP=true
+LOOP=$(foreach i,  $(SUBDIRS),  $(MAKE) -C $(i) $@ &&) true
+
+
+include $(stepdir)/files.make
diff --git a/stepmake/stepmake/include.make b/stepmake/stepmake/include.make
new file mode 100644 (file)
index 0000000..df45bb7
--- /dev/null
@@ -0,0 +1,6 @@
+# Include.make
+
+
+
+
+
diff --git a/stepmake/stepmake/toplevel-targets.make b/stepmake/stepmake/toplevel-targets.make
new file mode 100644 (file)
index 0000000..cf5b0a7
--- /dev/null
@@ -0,0 +1,47 @@
+# -*-Makefile-*-
+# title           Toplevel_targets.make
+
+local-dist: configure 
+
+local-distclean: 
+       rm -f config.hh config.make Makefile config.cache \
+               config.status config.log index.html
+
+local-maintainerclean:
+       rm -f configure
+
+GNUmakefile: make/toplevel.make.in
+       chmod +w $@
+       echo "# WARNING WARNING WARNING WARNING" > $@
+       echo "# do not edit! this is generated from make/Toplevel.make.in" >> $@
+       cat $< >> $@
+       chmod -w $@
+
+aclocal.m4: $(stepdir)/../aclocal.m4
+       cp $< $@
+
+local-WWW: #index.html 
+
+index.html: check-top-web NEWS
+       $(sed-version) < Documentation/topdocs/$(outdir)/topweb.html > $@
+       $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=Documentation/top-docs/out-www/index.html $@
+
+WWW-clean:
+       $(MAKE) CONFIGSUFFIX='www' clean
+
+dist:  
+       rm -rf $(distdir)
+       $(MAKE) local-dist $(distdir)
+       chmod -R a+r $(distdir)
+       chmod  a+x `find $(distdir) -type d -print` 
+       (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
+# ugh.
+# Can't compare "stage1" dist with "stage2" dist in this way?
+       -ln -f $(depth)/$(outdir)/$(distname).tar.gz $(release-dir)
+       rm -rf ./$(distdir)/
+
+local-help:
+       @echo -e "\
+  dist        roll tarball: $(outdir)/$(package)-$(TOPLEVEL_VERSION).tar.gz\n"
+
+
diff --git a/tex/GNUmakefile b/tex/GNUmakefile
new file mode 100644 (file)
index 0000000..16b4702
--- /dev/null
@@ -0,0 +1,14 @@
+# tex/Makefile
+
+depth = ..
+
+
+TEX_FILES = $(wildcard *.tex)
+EXTRA_DIST_FILES =  $(TEX_FILES)
+
+INSTALLATION_DIR=$(TEXDIR)/lilypond
+INSTALLATION_FILES=$(TEX_FILES)
+
+include $(depth)/make/stepmake.make
+include $(stepdir)/installfiles.make
+