From 1b76fb5a73bc610445b9fbda8c686fcbb6180cd0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 7 Jan 2019 19:04:46 +0100 Subject: Makefile tweaks --- Makefile | 8 +++----- 1 file 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) -- cgit v1.2.3