Edit

kc3-lang/automake/lib/am/depend.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1996-08-11 07:42:38
    Hash : c98183d6
    Message : Better C++, yacc, lex support

  • lib/am/depend.am
  • ## automake - create Makefile.in from Makefile.am
    ## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
    
    ## This program is free software; you can redistribute it and/or modify
    ## it under the terms of the GNU General Public License as published by
    ## the Free Software Foundation; either version 2, or (at your option)
    ## any later version.
    
    ## This program is distributed in the hope that it will be useful,
    ## but WITHOUT ANY WARRANTY; without even the implied warranty of
    ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    ## GNU General Public License for more details.
    
    ## You should have received a copy of the GNU General Public License
    ## along with this program; if not, write to the Free Software
    ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    ## 02111-1307, USA.
    
    ## This fragment is probably only useful for maintainers.  It relies
    ## on GNU make and gcc.  It is only included in the generated
    ## Makefile.in if `automake' is not passed the `--include-deps' flag.
    
    MKDEP = gcc -MM $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    
    ## We use ".P" as the name of our placeholder because it can't be
    ## duplicated by any C source file.  (Well, there could be ".c", but
    ## no one does that in practice)
    -include $(srcdir)/.deps/.P
    $(srcdir)/.deps/.P: $(BUILT_SOURCES)
    	cd $(srcdir) && test -d .deps || mkdir .deps
    ## Use ":" here and not "echo timestamp".  Otherwise GNU Make barfs:
    ## .deps/.P:1: *** missing separator.  Stop.
    ## Actually, use a plain "echo" and not ":".  Why?  From the Autoconf
    ## manual, node Automatic Remaking:
    ## On some old BSD systems, `touch' or any command that results in an
    ## empty file does not update the timestamps, so use a command like
    ## `echo' as a workaround.
    	echo > $@
    
    -include $(DEP_FILES)
    $(DEP_FILES): $(srcdir)/.deps/.P