doc update
[automake.git] / depend.am
blob335b98b055b58159ae1f7adae95bd76dbb71472f
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997 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 ## This depends on $(PRE_BUILT_SOURCES) because that lets us generate
30 ## dependencies for files that don't exist at the start of a fresh
31 ## build.
32 .deps/.P: $(PRE_BUILT_SOURCES)
33         test -d .deps || mkdir .deps
34 ## Use ":" here and not "echo timestamp".  Otherwise GNU Make barfs:
35 ## .deps/.P:1: *** missing separator.  Stop.
36 ## Actually, use a plain "echo" and not ":".  Why?  From the Autoconf
37 ## manual, node Automatic Remaking:
38 ## On some old BSD systems, `touch' or any command that results in an
39 ## empty file does not update the timestamps, so use a command like
40 ## `echo' as a workaround.
41         echo > $@
43 -include $(DEP_FILES)
44 $(DEP_FILES): .deps/.P
46 mostlyclean-depend:
48 clean-depend:
50 distclean-depend:
52 maintainer-clean-depend:
53         rm -rf .deps