Skip to content

Commit

Permalink
Add formating command usable by "make format"
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Jul 8, 2020
1 parent e46b8f1 commit f4c59c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ EE_OBJS := $(EE_OBJS:%=$(EE_OBJS_DIR)%)

.SILENT:

.PHONY: all release debug iopcore_debug eesio_debug ingame_debug deci2_debug clean rebuild pc_tools pc_tools_win32 oplversion
.PHONY: all release debug iopcore_debug eesio_debug ingame_debug deci2_debug clean rebuild pc_tools pc_tools_win32 oplversion format

all:
echo "Building Open PS2 Loader $(OPL_VERSION)..."
Expand Down Expand Up @@ -312,6 +312,9 @@ pc_tools_win32:
echo "Building WIN32 iso2opl, opl2iso and genvmc..."
$(MAKE) _WIN32=1 -C pc

format:
find . -type f -not -path \*modules/network/SMSTCPIP\* -a \( -iname \*.h -o -iname \*.c \) | xargs clang-format -i

$(EE_ASM_DIR):
@mkdir -p $@

Expand Down

0 comments on commit f4c59c6

Please sign in to comment.