Bug fixes
[automake.git] / depend.am
blob32ffb04335c524d9e18ae3b307ae070d2eeca4c6
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
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.
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.
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.
19 ## This fragment is probably only useful for maintainers.  It relies
20 ## on GNU make and gcc.  It is only included in the generated
21 ## Makefile.in if `automake' is not passed the `--include-deps' flag.
23 MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
25 ## We use ".P" as the name of our placeholder because it can't be
26 ## duplicated by any C source file.  (Well, there could be ".c", but
27 ## no one does that in practice)
28 -include .deps/.P
29 .deps/.P: $(BUILT_SOURCES)
30         test -d .deps || mkdir .deps
31 ## Use ":" here and not "echo timestamp".  Otherwise GNU Make barfs:
32 ## .deps/.P:1: *** missing separator.  Stop.
33 ## Actually, use a plain "echo" and not ":".  Why?  From the Autoconf
34 ## manual, node Automatic Remaking:
35 ## On some old BSD systems, `touch' or any command that results in an
36 ## empty file does not update the timestamps, so use a command like
37 ## `echo' as a workaround.
38         echo > $@
40 -include $(DEP_FILES)
41 $(DEP_FILES): .deps/.P
43 mostlyclean-depend:
45 clean-depend:
47 distclean-depend:
49 maintainer-clean-depend:
50         rm -rf .deps