From 83bf4eb80312e5f7ad7df9f25582e73636ac7c32 Mon Sep 17 00:00:00 2001 From: Anthony <bouillant.anthony@gmail.com> Date: Thu, 27 Mar 2025 20:44:21 +0100 Subject: [PATCH] Add clean step --- .gitlab-ci.yml | 7 +++++++ Makefile | 1 + 2 files changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f17e6e7..d7e1d58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ image: gcc stages: - build - test + - clean build: stage: build @@ -32,3 +33,9 @@ test_smart_ai: script: - echo "Running smart_ai tests..." - make -C testbed/smart_ai + +clean: + stage: clean + script: + - echo "Cleaning the project..." + - make clean diff --git a/Makefile b/Makefile index ba64835..6ef9070 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ puissance4: puissance4.c clean: @echo "this rule must clean everything up (including candidate files in testbed)" $(MAKE) -C testbed clean + $(RM) -f puissance4 *.o *.cand run: puissance4 ./$< -- GitLab