diff --git a/tests/Makefile b/tests/Makefile index ab4e043..c6e6900 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/04/16 20:12:38 by gbaconni #+# #+# # -# Updated: 2022/04/29 17:59:32 by gbaconni ### ########.fr # +# Updated: 2022/04/29 22:04:24 by gbaconni ### lausanne.ch # # # # **************************************************************************** # @@ -15,16 +15,14 @@ MACHINE = $(shell uname -m) all: test -libftprintf.a: - @ln -snf ../libftprintf/libftprintf/libftprintf.a libftprintf.a - libftprintf: - @ln -snf ../libftprintf/libftprintf libftprintf + @ln -snf ../libftprintf libftprintf -bonus: - @make -C ../libftprintf/libftprintf bonus +libftprintf.a: libftprintf + @ln -snf libftprintf/libftprintf.a libftprintf.a -bonus: test-pft +bonus: libftprintf + @make -C libftprintf bonus test: test-pft test-printftester @@ -32,13 +30,13 @@ test2: test-pft2 test-printftester2 test3: test-pft3 test-printftester3 -test-pft: +test-pft: pft @cd pft && ./test mix -test-pft2: +test-pft2: pft @cd pft && ./test -test-pft3: +test-pft3: pft @cd pft && ./test c @cd pft && ./test s @cd pft && ./test p @@ -48,13 +46,13 @@ test-pft3: @cd pft && ./test x @cd pft && ./test X -test-printftester: +test-printftester: printftester @make -C printftester m -test-printftester2: +test-printftester2: printftester @make -C printftester b -test-printftester3: +test-printftester3: printftester @make -C printftester a printftester: bonus libftprintf @@ -62,17 +60,17 @@ printftester: bonus libftprintf @test -d ~/goinfre/docker/ || install -d ~/goinfre/docker @test -d ~/goinfre/agent/ || install -d ~/goinfre/agent @test -d ~/.docker/ || ln -snf ~/goinfre/docker ~/.docker - @test -d ~/Library/Containers || ln -snf ~/goinfre/agent ~/Library/Containers/com.docker.docker +ifeq ($(KERNEL),Darwin) + @test -d ~/Library/Containers/com.docker.docker || ln -snf ~/goinfre/agent ~/Library/Containers/com.docker.docker +endif @test -d printftester || git clone https://github.com/Tripouille/printfTester.git printftester - @grep -qF '../libftprintf' Makefile && sed -i '' 's/\(\.\.\)/\1\/libftprintf/' Makefile + @grep -qF '../libftprintf' printftester/Makefile || sed -i '' 's/\(\.\.\)/\1\/libftprintf/' printftester/Makefile pft: bonus libftprintf.a @test -d pft || git clone https://github.com/gavinfielder/pft.git pft ifeq ($(KERNEL),Linux) @which php >/dev/null 2>&1 || sudo apt-get install -qq -y php-cli @sed -i -r 's/^(INCLUDE_LIBPTHREAD)=.*/\1=1/' pft/options-config.ini -endif -ifeq ($(KERNEL),Darwin) endif @make -C pft @@ -80,5 +78,6 @@ clean: @make -C pft clean fclean: - @rm -fr pft + @rm -f libftprintf libftprintf.a + @rm -fr pft printftester