forked from cassiopc/boca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 1020 Bytes
/
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
tools/safeexec: tools/safeexec.c
gcc tools/safeexec.c -o tools/safeexec
install-bocawww:
mkdir -p $(DESTDIR)/var/www/boca/
cp -r src $(DESTDIR)/var/www/boca/
cp -r doc $(DESTDIR)/var/www/boca/
install-bocaapache: install-bocawww
mkdir -p $(DESTDIR)/etc/apache2/sites-enabled/
cp tools/etc/apache2/conf.d/boca $(DESTDIR)/etc/apache2/sites-enabled/000-boca.conf
install-scripts:
mkdir -p $(DESTDIR)/usr/sbin/
install tools/dump.sh $(DESTDIR)/usr/sbin/boca-dump
install tools/etc/icpc/createbocajail.sh $(DESTDIR)/usr/sbin/boca-createjail
install tools/boca-createdb.sh $(DESTDIR)/usr/sbin/boca-createdb
install tools/boca-autojudge.sh $(DESTDIR)/usr/sbin/boca-autojudge
install tools/boca-config-dbhost.sh $(DESTDIR)/usr/sbin/boca-config-dbhost
install: install-bocawww install-bocaapache install-scripts tools/safeexec
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/etc/
cp tools/boca.conf $(DESTDIR)/etc/
install tools/safeexec $(DESTDIR)/usr/bin/safeexec
chmod 4555 $(DESTDIR)/usr/bin/safeexec