From: Ben Gras Date: Wed, 17 Nov 2010 14:28:23 +0000 (+0000) Subject: . auto-generate per-directory .gitignore files based on $(CLEANFILES) X-Git-Tag: v3.2.0~744 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.log?a=commitdiff_plain;h=371624e0ece3fe37b1a9c84a9d6c5c28e65e197c;p=minix.git . auto-generate per-directory .gitignore files based on $(CLEANFILES) . gitignore .gitignore files except for the root one. --- diff --git a/.gitignore b/.gitignore index 7bb1ab5c5..bf737f7f8 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,8 @@ GSYMS GTAGS \#*# CVS +!/.gitignore +.gitignore .svn boot/boot diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 2cf2c4577..0f93e4a93 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -15,6 +15,7 @@ ##### "all" and "depend" targets realinstall: realall realall: depend +depend: .gitignore ##### Basic targets realinstall: proginstall scriptsinstall @@ -382,4 +383,7 @@ memalloc: realall ${INSTALL} ${INSTALLFLAGS} ${PROG} .endif +.gitignore: Makefile + echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >.gitignore + .endif # HOSTPROG