# -*-Makefile-*-
########################################################
#
# WARNING!WARNING!WARNING!WARNING!WARNING!WARNING!
#	
#	DO NOT EDIT!	
#
#
# @configure_input@
########################################################
# project  LilyPond -- the musical typesetter
# title	   top level makefile for LilyPond  
# file	   Makefile 
#
# Copyright (c) 1997 by    
#   	Jan Nieuwenhuizen <jan@digicash.com>
#	Han-Wen Nienhuys <hanwen@stack.nl>

# subdir level:
#
depth = .
#

# identify module:
#
NAME = lilypond
include .version
include ./$(depth)/make/Version.make

# generic variables:
#
include ./$(depth)/make/Variables.make 
#

# descent order into subdirectories:
#
SUBDIRS = mf flower lib lily mi2mu \
	Documentation bin init input tex make
#

# list of distribution files:
#
SCRIPTS = configure configure.in install-sh
README_FILES = ANNOUNCE COPYING NEWS README TODO INSTALL.text AUTHORS.text
EXTRA_DISTFILES=  .dstreamrc .version $(README_FILES) $(SCRIPTS) $(SYMLINKS)

# do not dist ./Makefile (is copied from make/Toplevel.make)
DISTFILES:=$(EXTRA_DISTFILES)# Makefile $(ALL_SOURCES)
#


# generic targets and rules:
#
include ./$(depth)/make/Targets.make
include ./$(depth)/make/Rules.make
#

localdist: configure

INSTALL.text: check-doc-deps
	rm -f INSTALL.text
	ln `$(FIND) ./ -name INSTALL.text|head -1` .

localdistclean:
	rm -rf Makefile $(lily-version) $(flower-version) $(mi2mu-version) .b $(build) *~ $(allout) $(allgen) config.cache config.status



localclean:
	rm -f $(allexe) core config.cache config.log config.status 
	rm -f $(outdir)/*.{class,html,gif}

localinstall: all
	$(INSTALL) -d $(bindir)
	$(INSTALL) -m 755 $(allexe) $(bindir)

localuninstall:
	for i in $(allexe); do rm -f $(bindir)/`basename $$i`; done
