makewebsite_id = "<!make_website!>";
id_str = "make-website 0.9";
tar = "tar";
-make = "make -f Makefile";
+make = "make -f Makefile outdir=out-www";
mailaddress = "unknown"
fullname = "unknown"
footstr = ""
base="lilypond/";
-examples=["twinkle-pop",
- "praeludium-fuga-E",
- "cadenza",
- "twinkle",
- "collisions",
- "font16",
- "font20",
- #"scales",
- "rhythm",
- "coriolan",
- "multi"]
-
-mutopia_examples = [ "wtk1-fugue2",
- "standje",
- "preludes-1",
- "preludes-2",
-
- "wtk1-prelude1",
- "gallina",
- "scsii-menuetto"]
-
def gen_html():
print 'generating HTML'
my_system (["make -f Makefile -kC .. html"]);
-def gen_examples(inputs):
- print 'generating examples:\n'
- outputs = []
- for i in inputs:
- try:
- located = multiple_find ([i + '.ly'], include_path) [0]
- except IndexError:
- print 'continuing dazed & confused (%s) ' % i
- continue
- outputs.append (located)
- if not file_exist_b(i + '.dvi'):
- my_system (['ly2dvi %s' % located])
- if not file_exist_b(i + '.ly.txt'):
- os.link (located, i + ".ly.txt")
- list = map(lambda x: 'out/%s.ps.gz out/%s.gif' % (x,x), inputs)
- my_system (['make -C .. ' + join(' ', list)])
-
- return outputs
-
-def gen_list(inputs, filename):
- print "generating HTML list %s\n" % filename;
- list = open(filename, 'w')
- list.write ('<html><TITLE>Rendered Examples</TITLE>\n'
- '<body>These example files are taken from the LilyPond distribution.\n'
- 'LilyPond currently only outputs TeX and MIDI. The pictures and\n'
- 'PostScript files were generated using TeX, Ghostscript and some\n'
- 'graphics tools. The papersize used for these examples is A4. The GIF\n'
- 'files have been scaled to eliminate aliasing.\n');
-
- for ex in inputs:
- print '%s, ' % ex
- header = read_mudela_header(ex + '.ly.txt')
-
- def read_dict(s, default, h =header):
- try:
- ret = h[s]
- except KeyError:
- ret = default
- return ret
- head = read_dict('title', ex)
- composer = read_dict('composer', '')
- desc = read_dict('description', '')
- list.write('<hr>')
- list.write('<h1>example file: %s</h1>' % head);
- if composer <> '':
- list.write('<h2>%s</h2>\n' % composer)
- if desc <> '':
- list.write('%s<p>' % desc)
- list.write ('<ul>')
- def list_item(filename, desc, l = list):
- if file_exist_b(filename):
- l.write ('<li><a href=%s>%s</a>\n' % (filename, desc))
-
- list_item(ex + '.ly.txt', 'The input')
- for pageno in range(1,10):
- f = ex + '-page%d.gif' % pageno
- if not file_exist_b (f):
- break
- list_item(f, 'The output (picture, page %d)' % pageno)
- list_item(ex + '.ps.gz', 'The output (gzipped PostScript)')
- list_item(ex + '.midi', 'The output (MIDI)')
- list.write ("</ul>");
-
- list.write( "</BODY></HTML>");
- list.close()
texstuff = ["mudela"]
my_system (['make -C .. ' + todo])
-def file_exist_b(name):
- try:
- f = open(name)
- except IOError:
- return 0
- f.close ()
- return 1
+
def copy_files():
print "copying files\n"
# abstract
#
# do not change this file for site-wide extensions; please use
-# make/$(OUTDIR_NAME)/Site.make;
+# make/$(outdir)/Site.make;
#
# Any change in files in this directory (make/) would be distributed, if
# you do make dist
include $(depth)/make/Toplevel_version.make
-ifeq (0,${MAKELEVEL})
-
# Don't try to outsmart us, you puny computer!
-MAKE:=$(MAKE) --no-builtin-rules
+ifeq (0,${MAKELEVEL})
+ MAKE:=$(MAKE) --no-builtin-rules
endif
-ifndef OUTDIR_NAME
-OUTDIR_NAME=out
+
+ifndef config
+configuration=config
+else
+configuration=config-$(config)
endif
+include $(depth)/$(configuration).make
+
# directory names:
buildprefix=$(depth)
-outdir=$(OUTDIR_NAME)
+
+ifdef CONFIGSUFFIX
+outdir=out-$(CONFIGSUFFIX)
+else
+outdir=out
+endif
# derived names
lily_bindir = $(depth)/bin
distdir = $(depth)/$(outdir)/$(DIST_NAME)
depdir = $(outdir)
-flowerout = $(buildprefix)/flower/$(OUTDIR_NAME)
-libout = $(buildprefix)/lib/$(OUTDIR_NAME)
-lilyout = $(buildprefix)/lily/$(OUTDIR_NAME)
-mi2muout = $(buildprefix)/mi2mu/$(OUTDIR_NAME)
-makeout = $(buildprefix)/make/$(OUTDIR_NAME)
-docout = $(buildprefix)/Documentation/$(OUTDIR_NAME)
-binout = $(buildprefix)/bin/$(OUTDIR_NAME)
+flowerout = $(buildprefix)/flower/$(outdir)
+libout = $(buildprefix)/lib/$(outdir)
+lilyout = $(buildprefix)/lily/$(outdir)
+mi2muout = $(buildprefix)/mi2mu/$(outdir)
+makeout = $(buildprefix)/make/$(outdir)
+docout = $(buildprefix)/Documentation/$(outdir)
+binout = $(buildprefix)/bin/$(outdir)
doc-dir = $(depth)/Documentation
flower-dir = $(depth)/flower
rpm-sources = ${HOME}/rpms/SOURCES
#
-ifndef configuration
-configuration=config
-endif
+configheader=$(outdir)/config.hh
+
+
-include $(depth)/$(configuration).make
# user settings:
#
# -pipe makes it go faster, but is not supported on all platforms.
# EXTRA_CXXFLAGS= -fno-rtti -fno-exceptions -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wconversion
-EXTRA_CXXFLAGS= -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wconversion
+EXTRA_CXXFLAGS= -Wall -Winline -W -Wmissing-prototypes -Wmissing-declarations -Wconversion
CXXFLAGS = $(CFLAGS) $(USER_CXXFLAGS) $(EXTRA_CXXFLAGS) $(MODULE_CXXFLAGS)
-INCLUDES = -I$(depth) -Iinclude -I$(outdir) -I$(include-lib) -I$(libout) -I$(include-flower) -I$(flowerout)
+INCLUDES = -Iinclude -I$(outdir) -I$(include-lib) -I$(libout) -I$(include-flower) -I$(flowerout)
CXX_OUTPUT_OPTION = $< -o $@
-LDFLAGS = $(ILDFLAGS) $(USER_LDFLAGS) $(EXTRA_LDFLAGS) $(MODULE_LDFLAGS) -L$(depth)/lib/$(OUTDIR_NAME) -L$(depth)/flower/$(OUTDIR_NAME)
+LDFLAGS = $(ILDFLAGS) $(USER_LDFLAGS) $(EXTRA_LDFLAGS) $(MODULE_LDFLAGS) -L$(depth)/lib/$(outdir) -L$(depth)/flower/$(outdir)
LOADLIBES = $(EXTRA_LIBES) $(MODULE_LIBES) -lstdc++ # need lg++ for win32, really!
#