Make the directories be order-only prerequisites in the Makefile
David Blume

David Blume commited on 2016-01-10 08:58:01
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -20,7 +20,7 @@ $(OBJDIR)/ui:
20 20
 $(EXECUTABLE): $(OBJECTS) $(LIBDIR)/libmy_lib.a
21 21
 	$(CXX) $(OBJECTS) $(LDFLAGS) -o $@
22 22
 
23
-$(OBJDIR)/%.o: %.cpp ../include/my_lib.hpp $(OBJDIR) $(OBJDIR)/ui
23
+$(OBJDIR)/%.o: %.cpp ../include/my_lib.hpp | $(OBJDIR) $(OBJDIR)/ui
24 24
 	$(CXX) $(CPPFLAGS) $< -o $@
25 25
 
26 26
 clean:
27 27