From: Lukas Krickl Date: Fri, 17 Nov 2023 07:45:18 +0000 (+0100) Subject: Moved all scripts to makefile X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=bb241c299aefd18cba0279438b57106d3d6e1127;p=ulas%2F.git Moved all scripts to makefile --- diff --git a/makefile b/makefile index 336b96f..da26467 100644 --- a/makefile +++ b/makefile @@ -50,3 +50,18 @@ clean: install: cp ./$(BDIR)/$(BNAME) $(BIN_INSTALL_DIR) cp ./doc/$(BNAME).man $(MAN_INSTALL_DIR) + +.PHONY: tags +tags: + ctags --recurse=yes --exclude=.git --exclude=bin --exclude=obj --exclude=scripts + +.PHONY: format +format: + clang-format -i ./src/*.c ./include/*.h + +.PHONY: lint +lint: + clang-tidy ./include/*.h ./src/*.c + +runtest: + ./$(BDIR)/$(TEST_BNAME) diff --git a/scripts/bear.sh b/scripts/bear.sh deleted file mode 100755 index 445b696..0000000 --- a/scripts/bear.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# generate clang build commands -bear -- make SHELL="sh -x -e" --always-make diff --git a/scripts/ctags.sh b/scripts/ctags.sh deleted file mode 100755 index 2da2d60..0000000 --- a/scripts/ctags.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -ctags --recurse=yes --exclude=.git --exclude=bin --exclude=obj --exclude=scripts diff --git a/scripts/format.sh b/scripts/format.sh deleted file mode 100755 index 6cf085b..0000000 --- a/scripts/format.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -clang-format -i ./src/*.c ./include/*.h diff --git a/scripts/lint.sh b/scripts/lint.sh deleted file mode 100755 index 9176089..0000000 --- a/scripts/lint.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -clang-tidy ./include/*.h ./src/*.c diff --git a/scripts/run.sh b/scripts/run.sh deleted file mode 100755 index 16552dc..0000000 --- a/scripts/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -make && ./bin/ulas "$@" - diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100755 index 896784d..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -make && ./bin/testulas -