summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 46fce04..fea1e29 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ SRCS = \
OBJS_DIR = obj/
OBJS = $(patsubst ${SRCS_DIR}%.c,${OBJS_DIR}%.o,${SRCS})
-INCS_DIR = -Iinc/ -Ilibft/
+INCS_DIR = -Iinc/ -Ilibft/inc/
LIB_DIR = -Llibft/
LIB = -lft
@@ -40,7 +40,7 @@ RM = rm -rf
MKDIR = mkdir -p
-${OBJS_DIR}%.o: ${SRCS_DIR}%.c inc/minishell.h libft/libft.h
+${OBJS_DIR}%.o: ${SRCS_DIR}%.c inc/minishell.h libft/inc/libft.h
@${MKDIR} ${OBJS_DIR}
${CC} ${CFLAGS} ${DEBUG} ${INCS_DIR} -o $@ -c $<
@@ -52,10 +52,12 @@ all: ${NAME}
clean:
${RM} ${OBJS} ${B_OBJS}
-fclean: clean
+xclean:
${RM} ${NAME}
${RM} ${NAME}.dSYM
+fclean: clean xclean
+
re: fclean all
build: ${OBJS}
@@ -63,4 +65,4 @@ build: ${OBJS}
default: all
-.PHONY: all clean clean fclean re bonus run
+.PHONY: all clean clean fclean re