diff --git a/.gitignore b/.gitignore index a312d93..352d244 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.log build +ke +*.txt \ No newline at end of file diff --git a/Makefile b/Makefile index bf2837c..9060ab3 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,14 @@ CFLAGS += -fsanitize=address -fno-omit-frame-pointer LDFLAGS := -fsanitize=address -all: $(TARGET) +all: $(TARGET) test.txt $(TARGET): main.c $(CC) $(CFLAGS) -o $(TARGET) $(LDFLAGS) main.c clean: - rm -f $(TARGET) \ No newline at end of file + rm -f $(TARGET) + +.PHONY: test.txt +test.txt: + cp test.txt.bak $@ \ No newline at end of file diff --git a/test.txt.bak b/test.txt.bak new file mode 100644 index 0000000..1b031cd --- /dev/null +++ b/test.txt.bak @@ -0,0 +1,15 @@ +hello + + + + + + + + + + + + +world it is me + but I am not me