And generate the native.c file so we don't need to keep it in git.
---
.gitignore | 1 +
Makefile | 4 +++-
contrib/release/gen-copyright-years.sh | 2 ++
native.c | 5 -----
4 files changed, 6 insertions(+), 6 deletions(-)
delete mode 100644 native.c
diff --git a/.gitignore b/.gitignore
index bc78b47..d2d0a8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@
dwz
dwz.sum
dwz.log
+native.c
testsuite/dwz.tests/execs
diff --git a/Makefile b/Makefile
index e9193f9..591a0f6 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,10 @@ install: dwz
install -D -m 644 $(srcdir)/dwz.1 $(DESTDIR)$(mandir)/man1/dwz.1
clean:
rm -f $(OBJECTS) *~ core* dwz $(TEST_EXECS) $(DWZ_TEST_OBJECTS) \
- dwz.log dwz.sum native.o
+ dwz.log dwz.sum native.c native.o
rm -Rf testsuite-bin tmp.*
+native.c:
+ echo "int main (void) { return 0; }" > $@
native.o: native.c
$(CC) -o $@ $< -c -g
diff --git a/contrib/release/gen-copyright-years.sh b/contrib/release/gen-copyright-years.sh
index d081cd2..f97691a 100755
--- a/contrib/release/gen-copyright-years.sh
+++ b/contrib/release/gen-copyright-years.sh
@@ -128,6 +128,8 @@ main ()
tmp=$(mktemp)
for f in *.c *.h *.def; do
+ if test "$f" = "native.c"; then continue; fi
+
if ! grep -q "Copyright (C)" $f; then
echo "error: found file without copyright marker: $f"
exit 1
diff --git a/native.c b/native.c
deleted file mode 100644
index 398ec67..0000000
--- a/native.c
+++ /dev/null
@@ -1,5 +0,0 @@
-int
-main (void)
-{
- return 0;
-}
--
2.18.4