From 99e5658feb48f15f85eaf9680affea2f490459bb Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 3 Jun 2020 12:02:31 +0200 Subject: Refactoring parsing, Fixing builtin, rewrite everything else --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e004de..8edb9fa 100644 --- a/Makefile +++ b/Makefile @@ -6,14 +6,15 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/02/29 11:54:31 by cacharle #+# #+# # -# Updated: 2020/02/29 12:01:42 by cacharle ### ########.fr # +# Updated: 2020/06/03 12:01:15 by charles ### ########.fr # # # # **************************************************************************** # CC = ghc +RM = rm -f SRC_DIR = src -BUILD_DIR = build +OBJ_DIR = build NAME = computorv2 SRC = $(shell find $(SRC_DIR) -type f -name "*.hs") @@ -21,10 +22,10 @@ SRC = $(shell find $(SRC_DIR) -type f -name "*.hs") all: $(NAME) $(NAME): $(SRC) - $(CC) -dynamic --make -outputdir $(BUILD_DIR) -o $(NAME) $(SRC) + $(CC) -dynamic --make -outputdir $(OBJ_DIR) -o $(NAME) $(SRC) clean: - $(RM) $(BUILD_DIR)/*.o $(BUILD_DIR)/*.hi + $(RM) -r $(OBJ_DIR) fclean: clean $(RM) $(NAME) -- cgit