aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-03 12:02:31 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-03 12:02:31 +0200
commit99e5658feb48f15f85eaf9680affea2f490459bb (patch)
tree61fa812185892845b36792960435f79e0535043f /Makefile
parente8e86cea2bffe23961f0a1bea8ee770343894858 (diff)
downloadcomputorv2-99e5658feb48f15f85eaf9680affea2f490459bb.tar.gz
computorv2-99e5658feb48f15f85eaf9680affea2f490459bb.tar.bz2
computorv2-99e5658feb48f15f85eaf9680affea2f490459bb.zip
Refactoring parsing, Fixing builtin, rewrite everything else
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9e004de..8edb9fa 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,15 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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)