Skip to main content
edited tags; edited tags
Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k
Source Link

How to prevent automake from overwrting _DATA file

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?