make Make make all the files

BodgeMaster-unfinished
BodgeMaster 2022-06-24 08:08:41 +02:00
parent 24fed07369
commit 9ebc00b0af
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
source = $(wildcard ./src/*.cpp)
headers = $(wildcard ./src/*.h)
source = $(shell find ./ -name "*.cpp")
headers = $(shell find ./ -name "*.h")
main: $(source) $(headers)
c++ $(source) $(headers) -o ./bin/minecraft -Wall -Wextra -Werror
c++ $(source) $(headers) -o ./bin/minecraft -Wall -Wextra
clean:
rm -r bin/
rm -rv bin/
mkdir bin/
touch bin/.placeholder
touch bin/.placeholder