From ab0cac72c39ff7cd9340053f03021d7bd4f3be52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 13 Feb 2018 15:08:04 +0100 Subject: [PATCH] Make Makefile not recompile everything --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 21818ce..1fc481a 100644 --- a/Makefile +++ b/Makefile @@ -24,17 +24,17 @@ all: $(TARGETS:=.bin) %.bin: main_%.o $(OBJS) $(CXX) $(CXXFLAGS) $(CXXLIBS) $(OBJS) $< -o $@ -_gen/marching_cubes_data.cpp: tools/gen_marching_cubes_conf.py _gen +_gen/marching_cubes_data.cpp: tools/gen_marching_cubes_conf.py + mkdir -p _gen python3 $< > $@ %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< -o $@ -_gen: - mkdir -p _gen - ############################################################ +.PRECIOUS: %.o + .PHONY: clean clean: