In Makefile.am we have:
bin_PROGRAMS = sample
sample_SOURCES = main.cpp
sampleconfdir = $(sysconfdir)/sample
sampleconf_DATA = sample.cfg
whenever I install the application using make install, the file sample.cfg gets overwritten. How to tell automake to skip copy if file is already present?
 
                