1# TiMidity++ -- MIDI to WAVE converter and player
2# Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
3# Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18#
19# This Makefile is known to work with GNU make.
20
21ACLOCAL_AMFLAGS = -I autoconf
22M4DIR = autoconf
23SUBDIRS = \
24	autoconf \
25	utils \
26	libarc \
27	libunimod \
28	interface \
29	timidity \
30	windrv \
31	doc \
32	script \
33	configs
34
35EXTRA_DIST = \
36	ChangeLog.1 \
37	ChangeLog.2 \
38	ChangeLog.3 \
39	INSTALL.ja \
40	README.ja \
41	autogen.sh
42
43TOOLSDIR = timidity-tools
44UMPDIR = ump
45
46dynamics:
47	cd interface; $(MAKE) $@
48
49install.man install.manj:
50	cd doc; $(MAKE) $@
51
52install.tk:
53	cd interface; $(MAKE) $@
54
55install.el:
56	cd interface; $(MAKE) $@
57
58install.bin:
59	cd timidity; $(MAKE) install
60
61##
62## Targets for timidity-tools
63##
64tools:: tools-targets
65	cd $(TOOLSDIR); $(MAKE)
66
67tools-targets: $(TOOLSDIR)/Makefile
68
69install.tools:
70	cd $(TOOLSDIR); $(MAKE) install
71
72$(TOOLSDIR)/Makefile: $(TOOLSDIR)/Makefile.in config.status
73	CONFIG_HEADERS='' CONFIG_FILES=$(TOOLSDIR)/Makefile $(SHELL) ./config.status
74
75## for developers
76#$(TOOLSDIR)/Makefile.in: $(TOOLSDIR)/Makefile.am
77#	$(AUTOMAKE) --gnu $(TOOLSDIR)/Makefile
78
79
80##
81## Targets for UMP
82##
83ump: ump-targets
84	cd $(UMPDIR); $(MAKE) ump
85
86ump-targets: $(UMPDIR)/Makefile
87
88$(UMPDIR)/Makefile: $(UMPDIR)/Makefile.in config.status
89	CONFIG_HEADERS='' CONFIG_FILES=ump/Makefile $(SHELL) ./config.status
90
91## for developers
92#$(UMPDIR)/Makefile.in: $(UMPDIR)/Makefile.am
93#	$(AUTOMAKE) --gnu $(UMPSDIR)/Makefile
94