]> Zhao Yanbai Git Server - minix.git/commitdiff
OBJDIR-clean generating of .gitignore
authorBen Gras <ben@minix3.org>
Mon, 25 Apr 2011 12:18:36 +0000 (14:18 +0200)
committerBen Gras <ben@minix3.org>
Mon, 25 Apr 2011 12:18:36 +0000 (14:18 +0200)
By Antoine Leca

share/mk/bsd.prog.mk

index 074e010334ae5e2ee29e66f92616914859af198d..8f58656b5c237272bce0a4d6d7f5a873ee1cccd9 100644 (file)
@@ -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