From e5771f0c0ef8b2cd72a036412a1893cc0d3360a0 Mon Sep 17 00:00:00 2001 From: crvs Date: Fri, 10 May 2024 11:25:48 +0200 Subject: [PATCH] No need to specify default rule %.cpp.o --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 880eb8a..0d8fd48 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,6 @@ all: KDTree KDTree: KDTree.o ar rvs libKDTree.a KDTree.o -KDTree.o: KDTree.cpp KDTree.hpp - $(CXX) $(CXXFLAGS) -c KDTree.cpp - install: KDTree mkdir -p lib mv libKDTree.a lib/ @@ -21,3 +18,4 @@ clean: format: git ls-tree -r --full-tree --name-only HEAD | grep '\.\(hpp\|h\|cpp\)$$' | xargs clang-format-14 -style=file:.clang-format.yml -i +