"Fossies" - the Fresh Open Source Software Archive

Member "geoipupdate-3.1.1/conf/Makefile.am" (12 Jan 2018, 803 Bytes) of package /linux/misc/geoipupdate-3.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 DEFAULT_CONFIG_FILE = $(sysconfdir)/GeoIP.conf
    2 
    3 EXTRA_DIST=GeoIP.conf.default
    4 
    5 edit = sed -e 's|DATADIR|$(datadir)/GeoIP|g'
    6 
    7 install-exec-hook:
    8 	@if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \
    9 		echo "$(MKDIR_P) $(DESTDIR)$(sysconfdir)" ; \
   10 		$(MKDIR_P) "$(DESTDIR)$(sysconfdir)" ; \
   11 	fi
   12 	@if [ -f "$(DESTDIR)$(DEFAULT_CONFIG_FILE)" ]; then \
   13 		echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
   14 	else \
   15 		echo "$(INSTALL_DATA) GeoIP.conf $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
   16 		$(edit) "$(srcdir)/GeoIP.conf.default" > "$(srcdir)/GeoIP.conf"; \
   17 		$(INSTALL_DATA) "$(srcdir)/GeoIP.conf" "$(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
   18 		rm "$(srcdir)/GeoIP.conf"; \
   19 	fi
   20 
   21 uninstall-hook:
   22 	@if test -f "$(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; then \
   23 		rm "$(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
   24 	fi