Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (46 sloc) 1.6 KB
#
# Install and update Andes Help server
#
install-site-libraries:
cd lisp-site-install; $(MAKE) install-site-libraries
install-database:
cd LogProcessing/database; $(MAKE) install
install-dojo:
cd web-UI; $(MAKE) install
install-solver:
cd Algebra/src; $(MAKE) executable
ifeq ($(shell uname),Darwin)
httpd-document-root = /Library/webServer/Documents
httpd-conf-dir = /etc/$(if $(shell test -d /etc/apache2 && echo 1),apache2,httpd)/users
else
ifeq ($(shell uname),Linux)
# Ubuntu uses /var/www while RedHat uses /var/www/html
httpd-document-root = /var/www$(shell test -d /var/www/html && echo /html)
httpd-conf-dir = /etc/$(if $(shell test -d /etc/apache2 && echo 1),apache2,httpd)/conf.d
else
$(error "Unknown operating system")
endif
endif
conf-file = $(shell (/usr/sbin/httpd -v | grep Apache/1. >> /dev/null) && echo -1)
configure-httpd:
@echo "Please run with superuser privileges."
ifeq ($(shell which a2enmod &> /dev/null && echo 1),1)
@echo "In Ubuntu, configuring the proxy modules:"
a2enmod proxy; a2enmod proxy_html; a2enmod proxy_http
endif
cp andes-server$(conf-file).conf $(httpd-conf-dir)
ln -s `pwd`/web-UI $(httpd-document-root)
ln -s `pwd`/review $(httpd-document-root)
ln -s `pwd`/images $(httpd-document-root)
ln -s `pwd`/LogProcessing/Web-Interface $(httpd-document-root)/log
install-server:
cd help-server; $(MAKE) install-server
update:
git pull
cd lisp-site-install; $(MAKE) update
cd LogProcessing/database; $(MAKE) update
cd help-server; $(MAKE) update
cd problems; git pull
cd solutions; git pull
cd Algebra/src; $(MAKE) executable
cd web-UI; $(MAKE) update
Something went wrong with that request. Please try again.