From 371624e0ece3fe37b1a9c84a9d6c5c28e65e197c Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 17 Nov 2010 14:28:23 +0000 Subject: [PATCH] . auto-generate per-directory .gitignore files based on $(CLEANFILES) . gitignore .gitignore files except for the root one. --- .gitignore | 2 ++ share/mk/bsd.prog.mk | 4 ++++ 2 files changed, 6 insertions(+) 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 -- 2.44.0