From 7db58ddc195e37adbb4f6adda99e239b797b46d8 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 25 Apr 2011 14:18:36 +0200 Subject: [PATCH] OBJDIR-clean generating of .gitignore By Antoine Leca --- share/mk/bsd.prog.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 074e01033..8f58656b5 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -15,7 +15,7 @@ ##### "all" and "depend" targets realinstall: realall realall: depend -depend: .gitignore +depend: ${.CURDIR}/.gitignore ##### Basic targets realinstall: proginstall scriptsinstall @@ -392,7 +392,7 @@ memalloc: realall ${INSTALL} ${INSTALLFLAGS} ${PROG} .endif -.gitignore: Makefile - echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >.gitignore +${.CURDIR}/.gitignore: Makefile + echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >${.TARGET} .endif # HOSTPROG