title: How to Compile Single C file in Vim using Makefile Generated by Autotools
body: <p>If in my Makefile.am, I have a set of hypothetically named sources:</p>
  
  <pre><code>lib_LTLIBRARIES = libmy_tutorial.la                                           
  libmy_tutorial_la_SOURCES = \                                                 
    jump_table.h jump_table.c \                                                  
    core.h core.c \                                                
    my_dynapi.c                                                                   
  
  bin_PROGRAMS = main                                                            
  main_SOURCES = main.c                                                          
  main_LDADD = libmy_tutorial.la                                     
  
  CLEANFILES = *.o  
  </code></pre>
  
  <p>and I am in Vim. Is there a way to call <code>:make</code> on a single target if my Makefile is generated from the Makefile.am above.</p>
  
  <p>For example:</p>
  
  <p><code>:make main.o</code></p>
  
  <p>would compile only main.c from bin_PROGRAMS? </p>
  
  <p>Just as if I had run:</p>
  
  <p><code>gcc -c -o main.o $(CFLAGS) $(CPPFLAGS) main.c</code></p>