aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-02 01:27:45 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-02 01:27:45 +0100
commitfb41e23423854a865201c0803803191d1f65c8fa (patch)
tree515ba48b4bc97f1e7b550e46a4dbff6e5de12a92 /Makefile
parent762ff2fcaf45d6b94fb580e168baf3f01ebd61e1 (diff)
downloadft_printf_test-fb41e23423854a865201c0803803191d1f65c8fa.tar.gz
ft_printf_test-fb41e23423854a865201c0803803191d1f65c8fa.tar.bz2
ft_printf_test-fb41e23423854a865201c0803803191d1f65c8fa.zip
Fixed false positive, basic prettier, more test from pft
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
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