This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Update .gitignore files


This patch updates a bunch of .gitignore files (and creates some) in the
binutils-gdb repo.  I personally don't build in-tree, but some people
around me prefer to do that, so it should help clean up their
"git status".

I started by putting a catch-all "Makefile" in the top-level directory,
but there are some Makefiles that should not be ignored, so I think it's
safer to specify it explicitly in each sub-directory.

I have added .gitignore files in the readline and zlib directories, even
though they are imported code.  Unless the import process consists of
deleting the current directories before creating them again, the
.gitignore files should survive the future code imports.

There are still some generated files in gdb/gdbserver not properly
ignored, I'll fix that separately.
---
 .gitignore               | 5 +++++
 bfd/.gitignore           | 2 ++
 binutils/.gitignore      | 4 ++++
 etc/.gitignore           | 1 +
 gas/.gitignore           | 2 ++
 gprof/.gitignore         | 1 +
 intl/.gitignore          | 1 +
 ld/.gitignore            | 1 +
 libdecnumber/.gitignore  | 1 +
 libiberty/.gitignore     | 3 +++
 opcodes/.gitignore       | 1 +
 readline/.gitignore      | 4 ++++
 sim/.gitignore           | 2 ++
 sim/testsuite/.gitignore | 2 ++
 zlib/.gitignore          | 1 +
 15 files changed, 31 insertions(+)
 create mode 100644 etc/.gitignore
 create mode 100644 intl/.gitignore
 create mode 100644 readline/.gitignore
 create mode 100644 zlib/.gitignore

diff --git a/.gitignore b/.gitignore
index 4460159c84..2b8f987996 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,3 +59,8 @@ stamp-*
 /mpc*
 /gmp*
 /isl*
+
+/Makefile
+
+**/po/Makefile
+**/po/Makefile.in
diff --git a/bfd/.gitignore b/bfd/.gitignore
index 33161338b0..5bbb1072b2 100644
--- a/bfd/.gitignore
+++ b/bfd/.gitignore
@@ -13,6 +13,7 @@
 /pex64igen.c
 /stmp-bfd-h
 /targmatch.h
+/Makefile
 
 /doc/aoutx.texi
 /doc/archive.texi
@@ -38,3 +39,4 @@
 /doc/section.texi
 /doc/syms.texi
 /doc/targets.texi
+/doc/Makefile
diff --git a/binutils/.gitignore b/binutils/.gitignore
index 1934ea0f91..fd1f9fe4d6 100644
--- a/binutils/.gitignore
+++ b/binutils/.gitignore
@@ -1,5 +1,7 @@
 /addr2line
 /ar
+/bfdtest1
+/bfdtest2
 /bin2c
 /coffdump
 /cxxfilt
@@ -20,6 +22,7 @@
 /sysinfo
 /windmc
 /windres
+/Makefile
 
 /arlex.c
 /arparse.c
@@ -56,3 +59,4 @@
 /doc/strip.1
 /doc/windmc.1
 /doc/windres.1
+/doc/Makefile
diff --git a/etc/.gitignore b/etc/.gitignore
new file mode 100644
index 0000000000..5fc607b9e2
--- /dev/null
+++ b/etc/.gitignore
@@ -0,0 +1 @@
+/Makefile
diff --git a/gas/.gitignore b/gas/.gitignore
index 27d4887414..04bebb3d6e 100644
--- a/gas/.gitignore
+++ b/gas/.gitignore
@@ -1,4 +1,5 @@
 /as-new
+/Makefile
 
 /itbl-cpu.h
 /obj-format.h
@@ -7,3 +8,4 @@
 
 /doc/as.1
 /doc/asconfig.texi
+/doc/Makefile
diff --git a/gprof/.gitignore b/gprof/.gitignore
index 28f9e80c68..50d6c336cb 100644
--- a/gprof/.gitignore
+++ b/gprof/.gitignore
@@ -6,3 +6,4 @@
 /fsf_callg_bl.c
 /gconfig.h
 /gprof.1
+/Makefile
diff --git a/intl/.gitignore b/intl/.gitignore
new file mode 100644
index 0000000000..5fc607b9e2
--- /dev/null
+++ b/intl/.gitignore
@@ -0,0 +1 @@
+/Makefile
diff --git a/ld/.gitignore b/ld/.gitignore
index a345bfbc5c..c48288e3f7 100644
--- a/ld/.gitignore
+++ b/ld/.gitignore
@@ -14,3 +14,4 @@
 
 /ldscripts
 /tmpdir
+/Makefile
diff --git a/libdecnumber/.gitignore b/libdecnumber/.gitignore
index 7e47161d61..9903c212bd 100644
--- a/libdecnumber/.gitignore
+++ b/libdecnumber/.gitignore
@@ -1 +1,2 @@
 /gstdint.h
+/Makefile
diff --git a/libiberty/.gitignore b/libiberty/.gitignore
index ca2fba5cc3..05bcbae3f1 100644
--- a/libiberty/.gitignore
+++ b/libiberty/.gitignore
@@ -1,2 +1,5 @@
 /required-list
 /xhost-mkfrag
+/Makefile
+
+/testsuite/Makefile
diff --git a/opcodes/.gitignore b/opcodes/.gitignore
index 94ece5d4a4..cc00abc381 100644
--- a/opcodes/.gitignore
+++ b/opcodes/.gitignore
@@ -1,2 +1,3 @@
 /s390-mkopc
 /s390-opc.tab
+/Makefile
diff --git a/readline/.gitignore b/readline/.gitignore
new file mode 100644
index 0000000000..8ca4e34181
--- /dev/null
+++ b/readline/.gitignore
@@ -0,0 +1,4 @@
+/Makefile
+/doc/Makefile
+/examples/Makefile
+/shlib/Makefile
diff --git a/sim/.gitignore b/sim/.gitignore
index abdfed08d4..aded0bab4d 100644
--- a/sim/.gitignore
+++ b/sim/.gitignore
@@ -3,3 +3,5 @@
 /*/hw-config.h
 /*/targ-*
 /*/version.c
+
+/Makefile
diff --git a/sim/testsuite/.gitignore b/sim/testsuite/.gitignore
index 37a28a8c94..03a78bcd68 100644
--- a/sim/testsuite/.gitignore
+++ b/sim/testsuite/.gitignore
@@ -1 +1,3 @@
 *.x
+
+/Makefile
diff --git a/zlib/.gitignore b/zlib/.gitignore
new file mode 100644
index 0000000000..5fc607b9e2
--- /dev/null
+++ b/zlib/.gitignore
@@ -0,0 +1 @@
+/Makefile
-- 
2.11.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]