cvs commit: src/usr.bin/make make.1 parse.c

Oliver Eikemeier eik at FreeBSD.org
Sat Jul 10 01:14:43 PDT 2004


eik         2004-07-10 08:14:42 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_4)
    usr.bin/make         make.1 parse.c 
  Log:
  MFC of the new variable `.MAKEFILE_LIST'. Add the following
  to make.conf(5) to have a `deptree' target in all makefiles:
  
  .NOTMAIN: deptree
  deptree:
          @echo 'Dependency tree for ${MAKE} in ${.CURDIR}:'
          @l=1; \
          for d in ${.MAKEFILE_LIST}; do \
                  case "$$d" in \
                  ..)     l=$$(($$l-2));; \
                  /*)     printf '%-*s%s\n' $$l '' "`realpath \"$$d\"`"; \
                          l=$$(($$l+2));; \
                  *)      printf '%-*s%s\n' $$l '' \
                                  "`realpath \"${.OBJDIR}/$$d\"`"; \
                          l=$$(($$l+2));; \
                  esac \
          done
  
  Revision   Changes    Path
  1.29.2.16  +19 -2     src/usr.bin/make/make.1
  1.22.2.2   +10 -1     src/usr.bin/make/parse.c


More information about the cvs-all mailing list