From 3b9fcc0229fc01770226e45e30b1bbe54a05623a Mon Sep 17 00:00:00 2001
From: Terraneo Federico <fede.tft@hotmail.it>
Date: Sat, 4 Jan 2014 17:28:29 +0000
Subject: [PATCH] Starting makefile cleanup

---
 .gitignore      | 22 +++++++++++++---------
 Makefile        |  6 +-----
 miosix/Makefile |  7 ++-----
 3 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/.gitignore b/.gitignore
index c4518495..aba9a99c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,16 @@
-*/nbproject/
-*.bz2
-*.gz
+# Exclude doxygen
+miosix/_doc/doxygen/html/*
+
+# Exclude temporary files
+main.elf
+main.bin
+main.hex
+main.map
 *.o
 *.a
-*.elf
-*.map
-*.hex
-*.bin
-*~
 *.d
-*.directory
\ No newline at end of file
+
+# Exclude Mac OS X temporary
+._*
+.DS_Store
+
diff --git a/Makefile b/Makefile
index 936a9817..0a524976 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,6 @@ SUBDIRS := miosix
 SRC :=                                  \
 main.cpp
 
-
 ##
 ## List here additional static libraries with relative path
 ##
@@ -72,19 +71,16 @@ main: main.elf
 	$(SZ) main.elf
 
 main.elf: $(OBJ) miosix/libmiosix.a
-	@ echo "========Linking========"
+	@ echo "linking"
 	$(CXX) $(LFLAGS) -o main.elf $(OBJ) miosix/$(BOOT_FILE) $(LINK_LIBS)
 
 %.o: %.s
-	@echo "========Compiling $<========"
 	$(AS) $(AFLAGS) $< -o $@
 
 %.o : %.c
-	@echo "========Compiling $<========"
 	$(CC) $(DFLAGS) $(CFLAGS) $< -o $@
 
 %.o : %.cpp
-	@echo "========Compiling $<========"
 	$(CXX) $(DFLAGS) $(CXXFLAGS) $< -o $@	
 
 #pull in dependecy info for existing .o files
diff --git a/miosix/Makefile b/miosix/Makefile
index f2d3f280..c97d0f4b 100644
--- a/miosix/Makefile
+++ b/miosix/Makefile
@@ -26,7 +26,7 @@ kernel/scheduler/edf/edf_scheduler.cpp                                     \
 kernel/filesystem/filesystem.cpp                                           \
 kernel/filesystem/ff.c                                                     \
 kernel/filesystem/diskio.cpp                                               \
-kernel/SystemMap.cpp							   \
+kernel/SystemMap.cpp                                                       \
 util/util.cpp                                                              \
 util/version.cpp                                                           \
 util/crc16.cpp                                                             \
@@ -53,18 +53,15 @@ all: $(OBJ) $(BOOT_FILE)
 	$(AR) rcs libmiosix.a $(OBJ)
 
 clean:
-	-rm $(OBJ) $(BOOT_FILE) libmiosix.a $(OBJ:.o=.d)
+	-rm $(OBJ) $(BOOT_FILE) libmiosix.a $(OBJ:.o=.d) $(BOOT_FILE:.o=.d)
 
 %.o: %.s
-	@echo "========Compiling $<========"
 	$(AS) $(AFLAGS) $< -o $@
 
 %.o : %.c
-	@echo "========Compiling $<========"
 	$(CC)  $(DFLAGS) $(CFLAGS) $< -o $@
 
 %.o : %.cpp
-	@echo "========Compiling $<========"
 	$(CXX)  $(DFLAGS) $(CXXFLAGS) $< -o $@
 
 #pull in dependecy info for existing .o files
-- 
GitLab