Fix testing Makefile
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2022/04/16 20:12:38 by gbaconni #+# #+# #
|
# 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
|
all: test
|
||||||
|
|
||||||
libftprintf.a:
|
|
||||||
@ln -snf ../libftprintf/libftprintf/libftprintf.a libftprintf.a
|
|
||||||
|
|
||||||
libftprintf:
|
libftprintf:
|
||||||
@ln -snf ../libftprintf/libftprintf libftprintf
|
@ln -snf ../libftprintf libftprintf
|
||||||
|
|
||||||
bonus:
|
libftprintf.a: libftprintf
|
||||||
@make -C ../libftprintf/libftprintf bonus
|
@ln -snf libftprintf/libftprintf.a libftprintf.a
|
||||||
|
|
||||||
bonus: test-pft
|
bonus: libftprintf
|
||||||
|
@make -C libftprintf bonus
|
||||||
|
|
||||||
test: test-pft test-printftester
|
test: test-pft test-printftester
|
||||||
|
|
||||||
@@ -32,13 +30,13 @@ test2: test-pft2 test-printftester2
|
|||||||
|
|
||||||
test3: test-pft3 test-printftester3
|
test3: test-pft3 test-printftester3
|
||||||
|
|
||||||
test-pft:
|
test-pft: pft
|
||||||
@cd pft && ./test mix
|
@cd pft && ./test mix
|
||||||
|
|
||||||
test-pft2:
|
test-pft2: pft
|
||||||
@cd pft && ./test
|
@cd pft && ./test
|
||||||
|
|
||||||
test-pft3:
|
test-pft3: pft
|
||||||
@cd pft && ./test c
|
@cd pft && ./test c
|
||||||
@cd pft && ./test s
|
@cd pft && ./test s
|
||||||
@cd pft && ./test p
|
@cd pft && ./test p
|
||||||
@@ -48,13 +46,13 @@ test-pft3:
|
|||||||
@cd pft && ./test x
|
@cd pft && ./test x
|
||||||
@cd pft && ./test X
|
@cd pft && ./test X
|
||||||
|
|
||||||
test-printftester:
|
test-printftester: printftester
|
||||||
@make -C printftester m
|
@make -C printftester m
|
||||||
|
|
||||||
test-printftester2:
|
test-printftester2: printftester
|
||||||
@make -C printftester b
|
@make -C printftester b
|
||||||
|
|
||||||
test-printftester3:
|
test-printftester3: printftester
|
||||||
@make -C printftester a
|
@make -C printftester a
|
||||||
|
|
||||||
printftester: bonus libftprintf
|
printftester: bonus libftprintf
|
||||||
@@ -62,17 +60,17 @@ printftester: bonus libftprintf
|
|||||||
@test -d ~/goinfre/docker/ || install -d ~/goinfre/docker
|
@test -d ~/goinfre/docker/ || install -d ~/goinfre/docker
|
||||||
@test -d ~/goinfre/agent/ || install -d ~/goinfre/agent
|
@test -d ~/goinfre/agent/ || install -d ~/goinfre/agent
|
||||||
@test -d ~/.docker/ || ln -snf ~/goinfre/docker ~/.docker
|
@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
|
@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
|
pft: bonus libftprintf.a
|
||||||
@test -d pft || git clone https://github.com/gavinfielder/pft.git pft
|
@test -d pft || git clone https://github.com/gavinfielder/pft.git pft
|
||||||
ifeq ($(KERNEL),Linux)
|
ifeq ($(KERNEL),Linux)
|
||||||
@which php >/dev/null 2>&1 || sudo apt-get install -qq -y php-cli
|
@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
|
@sed -i -r 's/^(INCLUDE_LIBPTHREAD)=.*/\1=1/' pft/options-config.ini
|
||||||
endif
|
|
||||||
ifeq ($(KERNEL),Darwin)
|
|
||||||
endif
|
endif
|
||||||
@make -C pft
|
@make -C pft
|
||||||
|
|
||||||
@@ -80,5 +78,6 @@ clean:
|
|||||||
@make -C pft clean
|
@make -C pft clean
|
||||||
|
|
||||||
fclean:
|
fclean:
|
||||||
@rm -fr pft
|
@rm -f libftprintf libftprintf.a
|
||||||
|
@rm -fr pft printftester
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user