aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-01-07 19:04:46 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-01-07 19:04:46 +0100
commit1b76fb5a73bc610445b9fbda8c686fcbb6180cd0 (patch)
tree6fda45250520912eebb29df70404ca831fa48042
parent096ae14001679bf28c2683e6d0292597b1f85910 (diff)
downloadtermgl-1b76fb5a73bc610445b9fbda8c686fcbb6180cd0.tar.gz
Makefile tweaks
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8663715..86c131d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,19 +6,17 @@ BUILDDIR = build
OBJ = main.o cObject.o cObjectHandler.o cRender.o cInput.o
-prog: $(OBJ)
+debug: $(OBJ)
mkdir -p $(BUILDDIR)
$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
%.o: %.cpp
$(CC) $(CFLAGS) -c $<
-all:
- make clean
- make
+all: clean debug
.PHONY: clean
clean:
rm -f $(BUILDDIR)/$(OUTPUT) *.o
- rmdir $(BUILDDIR)
+ rmdir --ignore-fail $(BUILDDIR)