From 20c7750dabf3491df373b94b6527c1544a7e5716 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Tue, 10 Feb 2015 22:10:03 -0700 Subject: [PATCH] Git fix for empty directory. Makefile updated. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ‘build’ directory was not being synced by git because it was empty. Added a .gitignore file in the ‘build’ directory to force git to sync it but keep it empty. - Updated the Makefile to not erase the .gitignore. --- Makefile | 2 +- build/.gitignore | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 build/.gitignore diff --git a/Makefile b/Makefile index d825ee5..504bb99 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ load: all bootloadHID grbl.hex clean: - rm -f grbl.hex $(BUILDDIR)/* + rm -f grbl.hex $(BUILDDIR)/*.o $(BUILDDIR)/*.d $(BUILDDIR)/*.elf # file targets: $(BUILDDIR)/main.elf: $(OBJECTS) diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..86d0cb2 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore \ No newline at end of file