OSDN Git Service

1c208f4e3ad72e061e1a4d854b831fdc87121d0b
[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 SUBDIRS = \
22         utils \
23         libarc \
24         interface \
25         libunimod \
26         timidity \
27         doc
28
29 EXTRA_DIST = \
30         AUTHORS \
31         COPYING \
32         ChangeLog \
33         ChangeLog.1 \
34         INSTALL \
35         INSTALL.jp \
36         NEWS \
37         README \
38         README.jp \
39         timidity.ide \
40         timidity.mak \
41         TiMidity-uj.ad \
42         TiMidity.ad
43
44 TOOLSDIR = timidity-tools
45 UMPDIR = ump
46
47 dynamics:
48         cd interface; $(MAKE) $@
49
50 install.man install.manj:
51         cd doc; $(MAKE) $@
52
53 install.tk:
54         cd interface; $(MAKE) $@
55
56 install.el:
57         cd interface; $(MAKE) $@
58
59 install.bin:
60         cd timidity; $(MAKE) install
61
62 dist-hook:
63         CONFIG_HEADERS='' CONFIG_FILES=configs/msc-config.h $(SHELL) ./config.status
64         cp -r configs $(distdir)
65         chmod -R a+r $(distdir)
66         $(AMTAR) chof - $(distdir) | bzip2 -9 - > $(distdir).tar.bz2
67
68 ##
69 ## Targets for timidity-tools
70 ##
71 tools:: tools-targets
72         cd $(TOOLSDIR); $(MAKE)
73
74 tools-targets: $(TOOLSDIR)/Makefile
75
76 install.tools:
77         cd $(TOOLSDIR); $(MAKE) install
78
79 $(TOOLSDIR)/Makefile: $(TOOLSDIR)/Makefile.in config.status
80         CONFIG_HEADERS='' CONFIG_FILES=$(TOOLSDIR)/Makefile $(SHELL) ./config.status
81
82 ## for developers
83 #$(TOOLSDIR)/Makefile.in: $(TOOLSDIR)/Makefile.am
84 #       $(AUTOMAKE) --gnu $(TOOLSDIR)/Makefile
85
86
87 ##
88 ## Targets for UMP
89 ##
90 ump: ump-targets
91         cd $(UMPDIR); $(MAKE) ump
92
93 ump-targets: $(UMPDIR)/Makefile
94
95 $(UMPDIR)/Makefile: $(UMPDIR)/Makefile.in config.status
96         CONFIG_HEADERS='' CONFIG_FILES=ump/Makefile $(SHELL) ./config.status
97
98 ## for developers
99 #$(UMPDIR)/Makefile.in: $(UMPDIR)/Makefile.am
100 #       $(AUTOMAKE) --gnu $(UMPSDIR)/Makefile