Edit

kc3-lang/automake/depend.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1995-11-22 06:59:37
    Hash : 2e964017
    Message : Use ".P", not "empty.P", as placeholder.

  • 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 passed the `--use-deps' flag.
    
    MKDEP = gcc -MM
    
    DEP_FILES = $(patsubst %.o,.deps/%.P,$(OBJECTS))
    
    -include .deps/.P
    .deps/.P:
    	test -d .deps || mkdir .deps
    	touch $@
    
    -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