From ada41e81dc2d0c01610767837d996f3cc004e008 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 2 Nov 2020 20:03:21 +0100 Subject: Added bonus rule to Makefile --- Makefile | 5 ++++- README.md | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 314f184..f6faad0 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/02/08 03:06:59 by cacharle #+# #+# # -# Updated: 2020/11/02 19:53:57 by charles ### ########.fr # +# Updated: 2020/11/02 20:01:39 by charles ### ########.fr # # # # **************************************************************************** # @@ -62,6 +62,9 @@ run_raw: all run_debug: all ./$(NAME) +bonus: + $(MAKE) LIBASM_TEST_BONUS=yes + all: $(NAME) $(NAME): libasm_all $(OBJ) diff --git a/README.md b/README.md index da5313f..df3f04a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # libasm\_test -Unit tests for the libasm project. +Test for the libasm project of school 42. ![example\_screenshot](./screenshot.png) @@ -8,14 +8,20 @@ Unit tests for the libasm project. The default path to your libasm is `../libasm`. You can modify it in the Makefile. -``` +```sh $ make ``` ## Bonus -Set the environment variable `LIBASM_TEST_BONUS` to `yes`. +```sh +$ make bonus ``` + +Or: + +Set the environment variable `LIBASM_TEST_BONUS` to `yes`. +```sh $ echo 'export LIBASM_TEST_BONUS=yes' >> ~/.zshrc ``` -- cgit