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: