-install-data-local:
- @if test -f $(datadir)/thales.conf ; then \
- echo "$@ will not overwrite existing $(datadir)/thales.conf" ; \
- else \
- echo "$(INSTALL_DATA) thales.conf.default $(datadir)/thales.conf"; \
- $(INSTALL_DATA) thales.conf.default $(datadir)/thales.conf; \
- fi
-
-uninstall-local:
- @if test -f $(datadir)/thales.conf ; then \
- echo "rm -f $(datadir)/thales.conf"; \
- $(RM) -f $(datadir)/thales.conf; \
+install-data-hook:
+ @if test -f $(DESTDIR)$(sysconfdir)/thales.conf ; then \
+ echo "warning: not overwriting existing thales.conf" >&2 ; \
+ else \
+ cp $(DESTDIR)$(sysconfdir)/thales.conf.default \
+ $(DESTDIR)$(sysconfdir)/thales.conf ; \