source: trunk/essentials/sys-devel/automake-1.7/lib/am/ansi2knr.am

Last change on this file was 3120, checked in by bird, 18 years ago

automake 1.7.9

File size: 2.3 KB
Line 
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## %ANSI2KNR-DIR% is the directory where ansi2knr is, `' if
20## is the current directory.
21
22
23## ---------- ##
24## ansi2knr. ##
25## ---------- ##
26
27if %?ANSI2KNR-DIR%
28
29ANSI2KNR = %ANSI2KNR-DIR%/ansi2knr
30%ANSI2KNR-DIR%/ansi2knr:
31 cd %ANSI2KNR-DIR% && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
32
33else !%?ANSI2KNR-DIR%
34
35## Substitution from AM_C_PROTOTYPES. This makes it be built only when
36## necessary.
37ANSI2KNR = @ANSI2KNR@
38ansi2knr: ansi2knr.$(OBJEXT)
39 $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
40ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
41
42endif !%?ANSI2KNR-DIR%
43
44
45## ------------------- ##
46## Cleaning ansi2knr. ##
47## ------------------- ##
48
49
50if !%?ANSI2KNR-DIR%
51.PHONY: clean-krextra
52
53clean-am: clean-krextra
54clean-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).
61 -rm -f ansi2knr
62endif !%?ANSI2KNR-DIR%
63
64
65
66## --------------------------------- ##
67## Cleaning the output of ansi2knr. ##
68## --------------------------------- ##
69
70.PHONY: mostlyclean-kr
71
72mostlyclean-am: mostlyclean-kr
73mostlyclean-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
Note: See TracBrowser for help on using the repository browser.