--- bsd.prog.mk.R Tue Apr 12 11:52:54 2011 +++ bsd.prog.mk Fri Apr 22 12:30:44 2011 @@ -15,7 +15,7 @@ ##### "all" and "depend" targets realinstall: realall realall: depend -depend: .gitignore +depend: ${.CURDIR}/.gitignore ##### Basic targets realinstall: proginstall scriptsinstall @@ -383,7 +383,7 @@ ${INSTALL} ${INSTALLFLAGS} ${PROG} .endif -.gitignore: Makefile - echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >.gitignore +${.CURDIR}/.gitignore: Makefile + echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >${.TARGET} .endif # HOSTPROG