mirror of
https://github.com/Ratstail91/Hearts.git
synced 2025-11-29 02:24:28 +11:00
Updated build for linux
This commit is contained in:
13
makefile
13
makefile
@@ -13,10 +13,21 @@ OUTDIR=out
|
||||
all: $(OUTDIR)
|
||||
$(MAKE) -C Hearts
|
||||
|
||||
debug: export CXXFLAGS+=-g
|
||||
debug: clean all
|
||||
|
||||
$(OUTDIR):
|
||||
mkdir $(OUTDIR)
|
||||
|
||||
clean:
|
||||
$(RM) *.o *.a *.exe
|
||||
ifeq ($(OS),Windows_NT)
|
||||
del /S /Q *.o *.a *.exe $(OUTDIR)\*
|
||||
rmdir /S /Q $(OUTDIR)
|
||||
else ifeq ($(shell uname), Linux)
|
||||
find . -type f -name '*.o' -exec rm -f -r -v {} \;
|
||||
find . -type f -name '*.a' -exec rm -f -r -v {} \;
|
||||
rm $(OUTDIR)/* -f
|
||||
find . -empty -type d -delete
|
||||
endif
|
||||
|
||||
rebuild: clean all
|
||||
|
||||
Reference in New Issue
Block a user