From 28748009c0dc553e2fe5e6253e7615cf89d2b7ef Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 14 Jan 2018 18:21:13 -0600 Subject: Add clang-format configuration and Makefile rule The settings here are based on the current code style documentation. Signed-off-by: Samuel Holland --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c595290..6c532fd 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,11 @@ ${LOADER_NAME}: ${LOADER_OBJ} clean: rm -f libgcompat/*.o loader/*.o ${LIBGCOMPAT_NAME} ${LOADER_NAME} +format: + clang-format -i ${LIBGCOMPAT_SRC} ${LOADER_SRC} + install: all install -D -m755 ${LIBGCOMPAT_NAME} ${DESTDIR}/${LIBGCOMPAT_PATH} install -D -m755 ${LOADER_NAME} ${DESTDIR}/${LOADER_PATH} + +.PHONY: all clean format install -- cgit v1.2.3-60-g2f50