From 2e36eb04078e054d07c9259a54525d4fb7740fb7 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 12 Dec 2024 10:15:34 +0300 Subject: Changedd task7.1 to fit the task --- 7_1/Makefile | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to '7_1/Makefile') 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) -- cgit v1.2.3-70-g09d2