File: Makefile.am

package info (click to toggle)
geoip 1.4.7~beta6%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 13,652 kB
  • ctags: 473
  • sloc: ansic: 19,858; sh: 8,564; cpp: 523; perl: 156; makefile: 145; awk: 13
file content (16 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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