Subversion Repositories Koakuma

Rev

Rev 4 | Rev 11 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 7 2024-10-01 23:02:36Z nishi $
2
 
3
PREFIX = /usr/local
4
REPLACE = sed "s%@@PREFIX@@%$(PREFIX)%g"
5
 
6
.PHONY: install
7
 
3 nishi 8
install: Component/* Tool/* Utility/* koakuma.cgi.in apache.conf.in
9
	mkdir -p $(PREFIX)/lib/koakuma/component/
10
	mkdir -p $(PREFIX)/lib/koakuma/utility/
2 nishi 11
	mkdir -p $(PREFIX)/lib/koakuma/htdocs/static/
12
	mkdir -p $(PREFIX)/etc/koakuma/
13
	mkdir -p $(PREFIX)/lib/koakuma/cgi-bin/
14
	mkdir -p $(PREFIX)/bin/
3 nishi 15
	mkdir -p $(PREFIX)/lib/koakuma/db
16
	if [ ! -e "$(PREFIX)/lib/koakuma/db/projects.db" ] ; then echo "<projects></projects>" > $(PREFIX)/lib/koakuma/db/projects.db ; fi
17
	cp -rf Component/* $(PREFIX)/lib/koakuma/component/
18
	cp -rf Utility/* $(PREFIX)/lib/koakuma/utility/
4 nishi 19
	$(REPLACE) Tool/create-project.in > $(PREFIX)/bin/create-project
20
	$(REPLACE) Tool/launch-job.in > $(PREFIX)/bin/launch-job
2 nishi 21
	cp -rf koakuma.png $(PREFIX)/lib/koakuma/htdocs/static/
3 nishi 22
	cp style.css $(PREFIX)/lib/koakuma/htdocs/static/
2 nishi 23
	$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
24
	$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
25
	chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
4 nishi 26
	chmod +x $(PREFIX)/bin/create-project
2 nishi 27
	chmod +x $(PREFIX)/bin/launch-job
3 nishi 28
	@echo
29
	@echo Make sure $(PREFIX)/lib/koakuma/db is writable by your HTTPd user.
30
	@echo By default, Koakuma stock Apache config uses $(PREFIX)/etc/koakuma/passwd
7 nishi 31
	@echo for RPC authentication.