Edit

kc3-lang/automake/depend.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1995-12-10 22:45:33
    Hash : bebad21f
    Message : Many bug fixes

  • depend.am
  • # 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
    
    ## Use ${kr} in case we are doing auto-deANSIfication.
    DEP_FILES = $(patsubst %.${kr}o,.deps/%.P,$(OBJECTS))
    
    ## 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 .deps/.P
    .deps/.P:
    	test -d .deps || mkdir .deps
    ## Use ":" here and not "echo timestamp".  Otherwise GNU Make barfs:
    ## .deps/.P:1: *** missing separator.  Stop.
    	: > $@
    
    -include $(DEP_FILES)
    $(DEP_FILES): .deps/.P
    
    .deps/%.P: %.c
    	@echo "mkdeps $< > $@"
    	@$(MKDEP) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@-tmp
    	@mv $@-tmp $@
    
    # End of maintainer-only section