OBJDIR-clean generating of .gitignore

By Antoine Leca
This commit is contained in:
Ben Gras 2011-04-25 14:18:36 +02:00
parent c50ec2b4e2
commit 7db58ddc19

View file

@ -15,7 +15,7 @@
##### "all" and "depend" targets ##### "all" and "depend" targets
realinstall: realall realinstall: realall
realall: depend realall: depend
depend: .gitignore depend: ${.CURDIR}/.gitignore
##### Basic targets ##### Basic targets
realinstall: proginstall scriptsinstall realinstall: proginstall scriptsinstall
@ -392,7 +392,7 @@ memalloc: realall
${INSTALL} ${INSTALLFLAGS} ${PROG} ${INSTALL} ${INSTALLFLAGS} ${PROG}
.endif .endif
.gitignore: Makefile ${.CURDIR}/.gitignore: Makefile
echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >.gitignore echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >${.TARGET}
.endif # HOSTPROG .endif # HOSTPROG