-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
58 lines (49 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# 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/apache2/other
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
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_http
a2enmod proxy_html
endif
# Apache 2
cp andes-server-2.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
apachectl restart
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