17 lines
561 B
Makefile
17 lines
561 B
Makefile
dist_sysconf_DATA = GeoIP.conf.default
|
|
|
|
DEFAULT_CONFIG_FILE = $(sysconfdir)/GeoIP.conf
|
|
|
|
install-exec-hook:
|
|
@if test -f "$(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; then \
|
|
echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
|
|
else \
|
|
echo "$(INSTALL_DATA) GeoIP.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
|
|
$(INSTALL_DATA) "$(srcdir)/GeoIP.conf.default" "$(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
|
|
fi
|
|
|
|
uninstall-hook:
|
|
@if test -f "$(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; then \
|
|
rm "$(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
|
|
fi
|