goals = bin/main.o bin/Cube.o bin/Color.o bin/Quad.o bin/Vertex.o targets = $(patsubst bin/%.o, src/%.cpp, $(goals)) $(goals): $(targets) ;