Skip to content

Commit

Permalink
Merge pull request #42 from sagar-apple/remove_tabs
Browse files Browse the repository at this point in the history
Remove unnecessary tabs in Makefiles

Merging based on 3 approvals, thanks!
  • Loading branch information
woody-apple authored Mar 11, 2020
2 parents 2af8930 + 5539f94 commit a64b8ff
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 31 deletions.
3 changes: 3 additions & 0 deletions docs/style/STYLE_MAKEFILES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CHIP Makefile Style Guide

Use `tabs` only where strictly necessary. For example, Avoid using `tabs` to align line breaks.
30 changes: 15 additions & 15 deletions src/lib/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ all: libcore.a run_tests

include $(TOP_DIR)/.yams/cpp_rules.min

Module_Includes = \
-I. \
-I$(TOP_DIR)/src \
-I$(TOP_DIR)/src/include \
-I$(TOP_DIR)/src/lib/ \
-I$(TOP_DIR)/src/system \
-I$(TOP_DIR)/build/config/standalone/ \
-I$(TOP_DIR)/third_party/nlio/repo/include \
-I$(TOP_DIR)/third_party/nlassert/repo/include \
Module_Includes = \
-I. \
-I$(TOP_DIR)/src \
-I$(TOP_DIR)/src/include \
-I$(TOP_DIR)/src/lib/ \
-I$(TOP_DIR)/src/system \
-I$(TOP_DIR)/build/config/standalone/ \
-I$(TOP_DIR)/third_party/nlio/repo/include \
-I$(TOP_DIR)/third_party/nlassert/repo/include

Module_Test_Includes = $(Module_Includes)

CPP_Files = \
CHIPError.cpp \
CHIPTLVWriter.cpp \
CHIPTLVReader.cpp \
CHIPTLVUtilities.cpp \
CHIPTLVUpdater.cpp \
CHIPTLVDebug.cpp \
CHIPError.cpp \
CHIPTLVWriter.cpp \
CHIPTLVReader.cpp \
CHIPTLVUtilities.cpp \
CHIPTLVUpdater.cpp \
CHIPTLVDebug.cpp

libcore.a: $(CPP_Objects)
ar rvs $@ $^
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: libsupport.a run_tests

include $(TOP_DIR)/.yams/cpp_rules.min

Module_Includes = \
Module_Includes = \
-I. \
-I$(TOP_DIR)/src/include \
-I$(TOP_DIR)/src/lib \
Expand Down
30 changes: 15 additions & 15 deletions src/system/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ all: libSystemLayer.a run_tests

include $(TOP_DIR)/.yams/cpp_rules.min

Module_Includes = \
Module_Includes = \
-I. \
-I$(TOP_DIR)/src \
-I$(TOP_DIR)/src/include \
-I$(TOP_DIR)/src/lib/ \
-I$(TOP_DIR)/build/config/standalone/ \
-I$(TOP_DIR)/third_party/nlassert/repo/include/ \
-I$(TOP_DIR)/src/lib/core \
-I$(TOP_DIR)/src \
-I$(TOP_DIR)/src/include \
-I$(TOP_DIR)/src/lib \
-I$(TOP_DIR)/build/config/standalone \
-I$(TOP_DIR)/third_party/nlassert/repo/include \
-I$(TOP_DIR)/src/lib/core \


Module_Test_Includes = $(Module_Includes)

CPP_Files = \
SystemMutex.cpp \
SystemError.cpp \
SystemClock.cpp \
SystemObject.cpp \
SystemStats.cpp \
SystemTimer.cpp \
SystemLayer.cpp \
SystemFaultInjection.cpp \
SystemMutex.cpp \
SystemError.cpp \
SystemClock.cpp \
SystemObject.cpp \
SystemStats.cpp \
SystemTimer.cpp \
SystemLayer.cpp \
SystemFaultInjection.cpp \
SystemPacketBuffer.cpp

libSystemLayer.a: $(CPP_Objects)
Expand Down

0 comments on commit a64b8ff

Please sign in to comment.