From fb41e23423854a865201c0803803191d1f65c8fa Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 2 Nov 2019 01:27:45 +0100 Subject: Fixed false positive, basic prettier, more test from pft --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dc4e169..5ab6d2c 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,28 @@ FT_PRINTF_PATH = ../ft_printf CC = gcc -CCFLAGS = -Wall -Wextra +CCFLAGS = -Wall -Wextra -Wno-format -g LDFLAGS = -L$(FT_PRINTF_PATH) -lftprintf -MAKE = make -j4 NAME = ft_printf_test +PYTHON = python3 RM = rm -f +MAKE = make -j4 SRC = main.c helper.c moulitest_read_stdout.c OBJ = $(SRC:.c=.o) -run: all +run: run_pretty + +run_pretty: all + ./$(NAME) | $(PYTHON) prettier.py + +run_raw: all ./$(NAME) all: $(NAME) -$(NAME): ft_printf_all $(OBJ) +$(NAME): ft_printf_all clean $(OBJ) $(CC) $(LDFLAGS) $(CCFLAGS) -o $@ $(OBJ) %.o: %.c -- cgit