make diff ok
This commit is contained in:
@@ -105,13 +105,15 @@ $(NAME): $(OBJS)
|
|||||||
leaks: $(NAME)
|
leaks: $(NAME)
|
||||||
valgrind --leak-check=full --show-leak-kinds=all $(CREATE_CLONE)
|
valgrind --leak-check=full --show-leak-kinds=all $(CREATE_CLONE)
|
||||||
|
|
||||||
run:
|
run: $(NAME)
|
||||||
$(CREATE_CLONE)
|
$(CREATE_CLONE)
|
||||||
|
|
||||||
diff: $(NAME)
|
diff: $(CLONES)
|
||||||
@echo $(CYAN)"compare source with output :"$(RESET)
|
@echo $(CYAN)"compare source with output :"$(RESET)
|
||||||
- diff --color $(CLONE) $(SRCS); \
|
@for clone in $^; do \
|
||||||
if [ $$? -eq 0 ]; then echo $(GREEN)"Files $(SRCS) and $(CLONES) are identical"$(RESET); else echo $(RED)":Files $(SRCS) and $(CLONES) differ"$(RESET); fi
|
diff --color $$clone $(SRCS); \
|
||||||
|
if [ $$? -eq 0 ]; then echo $(GREEN)"Files $(SRCS) and $$clone are identical"$(RESET); else echo $(RED)":Files $(SRCS) and $$clone differ"$(RESET); fi \
|
||||||
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM_OBJS)
|
$(RM_OBJS)
|
||||||
|
|||||||
Reference in New Issue
Block a user