From 394660f0d16800919e4dd16e236d4c6020b552f2 Mon Sep 17 00:00:00 2001 From: Protik Banerji Date: Fri, 5 Apr 2024 17:00:17 +0200 Subject: [PATCH] Change default Make target to all and user friendly commands to clean --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3712437..b91de0b 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,17 @@ +.PHONY: all clean + ifeq ($(OS),Windows_NT) # Windows - CLEAN_SCRIPT := .\clean_win.bat + CLEAN_SCRIPT := @echo off && .\clean_win.bat else UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) # Linux - CLEAN_SCRIPT := ./clean_lin.sh + CLEAN_SCRIPT := chmod +x clean_lin.sh && ./clean_lin.sh endif endif -clean: - $(CLEAN_SCRIPT) - all: cmake . ninja +clean: + $(CLEAN_SCRIPT)