# **************************************************************************** # # # # ::: :::::::: # # Makefile :+: :+: :+: # # +:+ +:+ +:+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/04/16 20:12:38 by gbaconni #+# #+# # # Updated: 2022/04/29 16:49:32 by gbaconni ### ########.fr # # # # **************************************************************************** # KERNEL = $(shell uname -s) MACHINE = $(shell uname -m) all: test libftprintf.a: @ln -snf ../libftprintf/libftprintf/libftprintf.a libftprintf.a libftprintf: @ln -snf ../libftprintf/libftprintf libftprintf bonus: @make -C ../libftprintf/libftprintf bonus bonus: test-pft test: test-pft test2: test-pft2 test3: test-pft3 test-pft: @cd pft && ./test mix test-pft2: @cd pft && ./test test-pft3: @cd pft && ./test c @cd pft && ./test s @cd pft && ./test p @cd pft && ./test d @cd pft && ./test i @cd pft && ./test u @cd pft && ./test x @cd pft && ./test X printftester: bonus libftprintf @test -d ~/goinfre/ || ln -snf /goinfre/$(USER) ~/goinfre @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 @test -d printftester || git clone https://github.com/Tripouille/printfTester.git printftester @grep -qF '../libftprintf' Makefile && sed -i '' 's/\(\.\.\)/\1\/libftprintf/' 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 clean: @make -C pft clean fclean: @rm -fr pft