From fc1deeaf0dd25c2276cd1971d0acb26b6fa2f162 Mon Sep 17 00:00:00 2001 From: Carsten Wulff Date: Mon, 29 May 2023 21:45:38 +0200 Subject: [PATCH] makefile and ignore mods --- .gitignore | 1 + Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2bc16ca..ec3ab6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *# *~ .#* +.vscode bin version.h *.autosave diff --git a/Makefile b/Makefile index 5a82592..d1b756c 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ VERSION_HASH=${shell git describe --tags} TESTS= sar routes +cwd = ${shell pwd} + #- Figure out which platform we're running on ifeq ($(OS),Windows_NT) #- Not compatible with windows yet @@ -154,4 +156,7 @@ cirun: docker run --rm -it -v `pwd`:/lcic ${CONT} bash test: - ${foreach f, ${TESTS}, cd tests/${f}; make test || exit; cd ../../;} + ${foreach f, ${TESTS}, cd ${cwd}; cd tests/${f} && make test || exit; } + +cleantest: + ${foreach f, ${TESTS}, cd ${cwd}; cd tests/${f} && make clean; }