title: Rebuild specific object based on condition
body: <p>I am trying to modify gnu makefile of a large projects that has generic/pattern specific rules. </p>
  
  <p>The makefile is compiling and linking in separate rules. I have a specific need that if a certain condition pass at link time, then i want to call the compile rule again before linking again. Sample issue from makefile is as below, </p>
  
  <pre><code>    $(obj_dir)/%.o: $(src_base)/%.cpp
      @echo Compiling: $&lt;
      $(q)$(CXX) $(CXXFLAGS) $(REV) $(CXX_INCLUDE_PATH) -o $@ $&lt;
  
      $(link_files) :
      @echo Linking $@
      $(q)$(CXX) $(LINKFLAGS) -o $@ %.o
      ifeq (1,1)
      #condition pass so I want to call generic above ompilation rule again
         ?????
      else
        $(warning Do Nothing)
      endif
  </code></pre>
  
  <p>Can someone please help me on how I can call generic compilation rule again either recursively or otherwise. </p>
  
  <p>Help will be greatly appreciated. Thanks in advance. </p>