#Make file for whois

# This Makefile is constructed for the solaris version of make, which uses different flags
# from GNU make which is part of the standard linux distro used on the development
# machines. The webservers for test-www and www both are solaris machines, hence the format
# changes which are below. This Makefile WILL NOT WORK for Linux!

INSTALL_DIR   = /var/www
CGI_DIRECTORY = $(INSTALL_DIR)/perl/
HTML_FORM_DIR = $(INSTALL_DIR)/pub/ripencc/pub-services/db/whois/
HELP_FILE_DIR = $(INSTALL_DIR)/pub/ripencc/pub-services/db/whois/

USER=webmaster
GROUP=softies

all:

	#Nothing to Make

install: whois_cgi whois_html whois_help 

whois_cgi:
	install -m 0755 ./whois ${CGI_DIRECTORY}

whois_html:
	install -m 0664 -u $(USER) -g $(GROUP) ./whois.html ${HTML_FORM_DIR}

whois_help:
	install -m 0664 -u $(USER) -g $(GROUP) ./whoishelp.html ${HELP_FILE_DIR} 
