]> Zhao Yanbai Git Server - minix.git/commitdiff
. auto-generate per-directory .gitignore files based on $(CLEANFILES)
authorBen Gras <ben@minix3.org>
Wed, 17 Nov 2010 14:28:23 +0000 (14:28 +0000)
committerBen Gras <ben@minix3.org>
Wed, 17 Nov 2010 14:28:23 +0000 (14:28 +0000)
. gitignore .gitignore files except for the root one.

.gitignore
share/mk/bsd.prog.mk

index 7bb1ab5c5430d3c036a0346812302c8b1c31278d..bf737f7f899878300c648b4662c8c7f7f07991b0 100644 (file)
@@ -24,6 +24,8 @@ GSYMS
 GTAGS
 \#*#
 CVS
+!/.gitignore
+.gitignore
 .svn
 
 boot/boot
index 2cf2c45772be50cb586f29173289e5e629e4bc69..0f93e4a935fb0a1e05f53f8976f416cbc1ecd0e6 100644 (file)
@@ -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