aboutsummaryrefslogtreecommitdiffstats
path: root/7_1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '7_1/Makefile')
-rw-r--r--7_1/Makefile30
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)