Git fix for empty directory. Makefile updated.

- ‘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.
This commit is contained in:
Sonny Jeon 2015-02-10 22:10:03 -07:00
parent b237ad566a
commit 20c7750dab
2 changed files with 5 additions and 1 deletions

View File

@ -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)

4
build/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore