diff options
author | justanothercatgirl <sotov@twistea.su> | 2024-12-12 10:15:34 +0300 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2024-12-12 10:15:34 +0300 |
commit | 2e36eb04078e054d07c9259a54525d4fb7740fb7 (patch) | |
tree | 635ce5de270133038cee4d0f9dfb94d3a6d3ac59 /7_1/Makefile | |
parent | e9bbfdadb54d91379385f586f63e0f004bd79c50 (diff) |
Changedd task7.1 to fit the task
Diffstat (limited to '7_1/Makefile')
-rw-r--r-- | 7_1/Makefile | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/7_1/Makefile b/7_1/Makefile index f7aaf17..072ca2e 100644 --- a/7_1/Makefile +++ b/7_1/Makefile @@ -6,24 +6,13 @@ all: test .PHONY: test clean test: task7_1 - - ./$< - @./$< 69 - @./$< 429 - @./$< 828 - @./$< 425729 - @./$< 235723572579 - @./$< 000111222333 - @./$< 1048575 - @./$< 1048576 - @./$< -31273891273891273 - @./$< -000000000000000000 - @./$< -2313423 - @./$< -123 - - ./$< -9223372036854775809 - @./$< -9223372036854775807 - - ./$< -9223372036854775808 - @./$< -1048576 - @./$< -1048575 + -./$< + @./$< 69 429 828 425729 235723572579 000111222333 1048575 1048576 -31273891273891273 \ + -000000000000000000 -2313423 -123 -9223372036854775809 -9223372036854775807 -9223372036854775808 -1048576 -1048575 + ./$< test_file + @cat test_file + @$(MAKE) clean + task7_1: main.c @@ -31,3 +20,8 @@ task7_1: main.c clean: $(RM) task7_1 + $(eval TMP := $(shell mktemp)) + @touch $(TMP) + @head -n 1 test_file > $(TMP) + @cat $(TMP) > test_file + @rm -f $(TMP) |