From 28887a04d7a76baad502a4cd46bb63241ebfbd71 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@pinebookpro" Date: Tue, 2 Nov 2021 13:15:41 +0100 Subject: [PATCH] Start TP3 --- programmation-c-cpp/tp3/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 programmation-c-cpp/tp3/Makefile diff --git a/programmation-c-cpp/tp3/Makefile b/programmation-c-cpp/tp3/Makefile new file mode 100644 index 0000000..66c37ac --- /dev/null +++ b/programmation-c-cpp/tp3/Makefile @@ -0,0 +1,11 @@ +CFLAGS=-lm +C_FILES=$(shell find . -name '*.*') +TARGETS=$(notdir $(basename ${C_FILES})) + +all: ${TARGETS} + @for target in ${TARGETS}; do \ + grep -q $${target} ../../.gitignore || echo $${target} >> ../../.gitignore; \ + done + +clean: + rm -f ${TARGETS}