# -*-Makefile-*-
# title	   specific top level makefile for LilyPond  

# subdir level:
#
depth = .
#

# descent order into subdirectories:
#
SUBDIRS = scripts buildscripts  flower lib lily mf midi2ly po debian \
	Documentation ly input tex make mutopia test intl stepmake\
	ps  scm
#

SCRIPTS = configure aclocal.m4
README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE-1.0 ANNOUNCE-1.2 \
 COPYING NEWS-0.1 NEWS-1.0 NEWS-0.0 NEWS  TODO AIMS
README_TXT_FILES = README.txt AUTHORS.txt INSTALL.txt PATCHES.txt
IN_FILES := $(wildcard *.in)
EXTRA_DIST_FILES = dstreamrc mudela-mode.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES) TASKS
NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)

# bootstrap stepmake:
#
STEPMAKE_TEMPLATES=toplevel yolily-toplevel po
include $(depth)/make/stepmake.make 
#

website: htmldoc examples doc++ fonts

fonts:
	$(MAKE) -C mf 

examples:
	$(MAKE) CONFIGSUFFIX='www' -C input WWW
	$(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
	tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz  `find input mutopia -type d -name 'out-www' -print`

localinstall:
	mkdir -p $(datadir)
	rm -f $(datadir)/cmtfm 
	$(LN_S) $(TEX_TFMDIR) $(datadir)/cmtfm

local-WWW-clean:
	$(depth)/buildscripts/out/clean-fonts
