* ext-compile.am: New file.
[platform/upstream/automake.git] / ansi2knr.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 1994, 1995, 1996, 1997, 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
19
20 ## ---------- ##
21 ## ansi2knr.  ##
22 ## ---------- ##
23
24 if %!ANSI2KNR-DIR%
25
26 ansi2knr: ansi2knr.$(OBJEXT)
27         $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
28 ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
29
30 else %!ANSI2KNR-DIR%
31
32 %ANSI2KNR-DIR%/ansi2knr:
33         cd %ANSI2KNR-DIR% && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
34
35 endif %!ANSI2KNR-DIR%
36
37
38 ## ------------------- ##
39 ## Cleaning ansi2knr.  ##
40 ## ------------------- ##
41
42
43 if %!ANSI2KNR-DIR%
44 .PHONY: clean-krextra
45
46 clean-am: clean-krextra
47 clean-krextra:
48 ## Why `clean' and not somewhere else?  Not `mostlyclean' because
49 ## people usually don't want to recompile this file.  And not
50 ## `distclean' because of our informal rule: if `make' built it, then
51 ## `clean' should delete it; if `configure' built it, then `distclean'
52 ## should remove it (and if the maintainer built it, then
53 ## maintainer-clean should remove it).
54         -rm -f ansi2knr
55 endif %!ANSI2KNR-DIR%
56
57
58
59 ## --------------------------------- ##
60 ## Cleaning the output of ansi2knr.  ##
61 ## --------------------------------- ##
62
63 .PHONY: mostlyclean-kr
64
65 mostlyclean-am: mostlyclean-kr
66 mostlyclean-kr:
67         -rm -f *_.c