OSDN Git Service

401a511e2813beb593364f9d23338a8f25f52f01
[timidity41/timidity41.git] / Makefile.am
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
21 ACLOCAL_AMFLAGS = -I autoconf
22 M4DIR = autoconf
23 SUBDIRS = \
24         autoconf \
25         configs \
26         doc \
27         script \
28         utils \
29         libarc \
30         libunimod \
31         interface \
32         timidity
33
34 EXTRA_DIST = \
35         ChangeLog.1 \
36         INSTALL.ja \
37         README.ja \
38         timidity.ide \
39         timidity.mak \
40         TiMidity-uj.ad.in \
41         TiMidity.ad.in
42
43 TOOLSDIR = timidity-tools
44 UMPDIR = ump
45
46 dynamics:
47         cd interface; $(MAKE) $@
48
49 install.man install.manj:
50         cd doc; $(MAKE) $@
51
52 install.tk:
53         cd interface; $(MAKE) $@
54
55 install.el:
56         cd interface; $(MAKE) $@
57
58 install.bin:
59         cd timidity; $(MAKE) install
60
61 dist-hook:
62         echo '$(SHELL) ./config.status ; if cmp -s $$CONFIG_FILES $(distdir)/$$CONFIG_FILES; then echo no need to copy $$CONFIG_FILES ; else cp -p $$CONFIG_FILES $(distdir)/$$CONFIG_FILES; fi' \
63         | env CONFIG_HEADERS='' CONFIG_FILES=configs/msc-config.h \
64         $(SHELL)
65
66 ##
67 ## Targets for timidity-tools
68 ##
69 tools:: tools-targets
70         cd $(TOOLSDIR); $(MAKE)
71
72 tools-targets: $(TOOLSDIR)/Makefile
73
74 install.tools:
75         cd $(TOOLSDIR); $(MAKE) install
76
77 $(TOOLSDIR)/Makefile: $(TOOLSDIR)/Makefile.in config.status
78         CONFIG_HEADERS='' CONFIG_FILES=$(TOOLSDIR)/Makefile $(SHELL) ./config.status
79
80 ## for developers
81 #$(TOOLSDIR)/Makefile.in: $(TOOLSDIR)/Makefile.am
82 #       $(AUTOMAKE) --gnu $(TOOLSDIR)/Makefile
83
84
85 ##
86 ## Targets for UMP
87 ##
88 ump: ump-targets
89         cd $(UMPDIR); $(MAKE) ump
90
91 ump-targets: $(UMPDIR)/Makefile
92
93 $(UMPDIR)/Makefile: $(UMPDIR)/Makefile.in config.status
94         CONFIG_HEADERS='' CONFIG_FILES=ump/Makefile $(SHELL) ./config.status
95
96 ## for developers
97 #$(UMPDIR)/Makefile.in: $(UMPDIR)/Makefile.am
98 #       $(AUTOMAKE) --gnu $(UMPSDIR)/Makefile