1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 2001, 2003, 2008, 2009
3 ## Free Software Foundation, Inc.
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, or (at your option)
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.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
18 ## %ANSI2KNR-DIR% is the directory where ansi2knr is, `' if
19 ## is the current directory.
28 ANSI2KNR = %ANSI2KNR-DIR%/ansi2knr
29 %ANSI2KNR-DIR%/ansi2knr:
30 $(am__cd) %ANSI2KNR-DIR% && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
31 .MAKE: %ANSI2KNR-DIR%/ansi2knr
35 ## Substitution from AM_C_PROTOTYPES. This makes it be built only when
38 ./ansi2knr: ansi2knr.$(OBJEXT)
39 $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
40 ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
42 endif !%?ANSI2KNR-DIR%
45 ## ------------------- ##
46 ## Cleaning ansi2knr. ##
47 ## ------------------- ##
53 clean-am: clean-krextra
55 ## Why `clean' and not somewhere else? Not `mostlyclean' because
56 ## people usually don't want to recompile this file. And not
57 ## `distclean' because of our informal rule: if `make' built it, then
58 ## `clean' should delete it; if `configure' built it, then `distclean'
59 ## should remove it (and if the maintainer built it, then
60 ## maintainer-clean should remove it).
62 endif !%?ANSI2KNR-DIR%
66 ## --------------------------------- ##
67 ## Cleaning the output of ansi2knr. ##
68 ## --------------------------------- ##
70 .PHONY: mostlyclean-kr
72 mostlyclean-am: mostlyclean-kr
74 ## Only delete *_.c when ansi2knr is actually in use, so as to avoid
75 ## deleting sources that happen to end in "_" after being truncated on a DOS
76 ## 8.3 filesystem with srcdir==builddir.
77 -test "$U" = "" || rm -f *_.c