2 # project LilyPond -- the musical typesetter
3 # title makefile for mi2mu
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
18 include ./$(depth)/make/Variables.make
25 include $(mi2mu-dir)/.version
26 build = $(mi2mu-dir)/$(outdir)/.build
29 # descent order into subdirectories:
34 # to be remade each build:
36 VERSION_DEPENDENCY = $(mi2mu-version)
39 # list of c++ header files:
41 HHFILES := $(wildcard *.hh )
44 # list of c++ source files:
46 CCFILES := $(wildcard *.cc )
49 # list of other source files:
51 EXTRA_SOURCE_FILES := $(wildcard *.y *.l )
54 # list of distribution files:
56 DISTFILES = Makefile .version $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
59 # list of custom libraries:
61 # yes, i know about the -L and -l options,
62 # but these libraries get rebuild when needed.
63 CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER)
68 # main target of this module:
70 # MAINTARGET = $(EXECUTABLE)
71 # MAINTARGET = $(LIBRARY)
72 MAINTARGET = $(lily_bindir)/$(EXECUTABLE)# huh?
73 # MAINTARGET = $(libdir)/$(LIBRARY)# huh?
75 default: $(MAINTARGET)
78 # generic targets and rules:
80 include ./$(depth)/make/Targets.make
81 include ./$(depth)/make/Rules.make
84 # explicit dependencies: (how to do auto?)
86 midi-lexer.l: $(outdir)/midi-parser.hh
88 # list of depend files:
90 DEPFILES = $(shell ls $(depdir)/*.dep $(ERROR_LOG))
95 -include /dev/null $(DEPFILES)