Skip to content

Commit

Permalink
Change default Make target to all and user friendly commands to clean
Browse files Browse the repository at this point in the history
  • Loading branch information
protik09 committed Apr 5, 2024
1 parent 0435212 commit 394660f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 394660f

Please sign in to comment.