From f5e8d84eecc8bae7a5fad99f515f877e39994c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Fri, 17 Jun 2022 14:36:23 +0200 Subject: [PATCH] Clean up Makefile --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 182bdaf..da06c85 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,13 @@ CPP=g++ -EXEC := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o +OBJS := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o -all: $(EXEC) +all: $(OBJS) %.o: %.cpp - g++ $< -o $@ -c + $(CPP) $< -o $@ -c + +.PHONY: clean all clean: - $(RM) $(EXEC) + $(RM) $(OBJS)