From 00bc81465c33ba505f77ddf8ccb36c99bb79cbea Mon Sep 17 00:00:00 2001 From: Klagarge Date: Sat, 18 Apr 2026 09:59:10 +0000 Subject: [PATCH] Revert "fix!(lab03): correct initialisation of the lab silly led" Revert makefile in solution --- solutions/04_system/silly/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/solutions/04_system/silly/Makefile b/solutions/04_system/silly/Makefile index b7be12c..b2c3432 100644 --- a/solutions/04_system/silly/Makefile +++ b/solutions/04_system/silly/Makefile @@ -1,5 +1,20 @@ -EXE=app -SRCS=$(wildcard *.c) +# Makefile for CMake project with intelligent configuration -# Include the standard application Makefile for the CSEL1 labs -include ./appl.mk + +# Default target +all: build/build.ninja + cmake --build build + +# Create build directory and generate build files if needed +build/build.ninja : CMakeLists.txt + cmake -S . -B build -G "Ninja" + +# Clean build directory +clean: + rm -rf build + +# Rebuild from scratch +rebuild: clean all + +# Phony targets (targets that don't represent files) +.PHONY: all clean rebuild