18df4311286be34daae8764e1ac2536dc9e081bc
[platform/upstream/automake.git] / lib / am / multilib.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 1998, 2001 Free Software Foundation, Inc.
3
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 ## 02111-1307, USA.
18 ## Multilib support variables.
19 MULTISRCTOP =
20 MULTIBUILDTOP =
21 MULTIDIRS =
22 MULTISUBDIR =
23 MULTIDO = true
24 MULTICLEAN = true
25
26 all-multi:
27         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
28 install-multi:
29         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
30
31 .PHONY: all-multi install-multi
32
33 if %?SUBDIRS%
34 all-recursive: all-multi
35 install-recursive: install-multi
36 else !%?SUBDIRS%
37 all-am: all-multi
38 install-am: install-multi
39 endif !%?SUBDIRS%
40
41 mostlyclean-am: mostlyclean-multi
42 clean-am: clean-multi
43 distclean-am: distclean-multi
44 maintainer-clean-am: maintainer-clean-multi
45
46 mostlyclean-multi:
47         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
48 clean-multi:
49         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
50 distclean-multi:
51         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
52 maintainer-clean-multi:
53         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
54
55 .PHONY: mostlyclean-multi clean-multi distclean-multi maintainer-clean-multi
56
57
58 if %?SUBDIRS%
59 mostlyclean-recursive: mostlyclean-multi
60 clean-recursive: clean-multi
61 distclean-recursive: distclean-multi
62 maintainer-clean-recursive: maintainer-clean-multi
63 else !%?SUBDIRS%
64 mostlyclean-am: mostlyclean-multi
65 clean-am: clean-multi
66 distclean-am: distclean-multi
67 maintainer-clean-am: maintainer-clean-multi
68 endif !%?SUBDIRS%