Skip to content

Commit

Permalink
Correct install hook for static config files, GitHub#408
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Aug 26, 2023
1 parent c57de70 commit f3df79b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/Makefile.am
Expand Up @@ -66,7 +66,15 @@ endif

install-config-files: $(CONFFILES) $(GENFILES)
$(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
for f in $(CONFFILES) $(GENFILES); do \
for f in $(CONFFILES); do \
if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pkgconfdir)/$$f; then \
echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir)"; \
$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(pkgconfdir); \
else \
echo "not overwriting $$f"; \
fi; \
done
for f in $(GENFILES); do \
if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pkgconfdir)/$$f; then \
echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir)"; \
$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir); \
Expand Down

0 comments on commit f3df79b

Please sign in to comment.