Skip to content

Commit

Permalink
Git fix for empty directory. Makefile updated.
Browse files Browse the repository at this point in the history
- ‘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.
  • Loading branch information
chamnit committed Feb 11, 2015
1 parent b237ad5 commit 20c7750
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

0 comments on commit 20c7750

Please sign in to comment.