Subversion Repositories Koakuma

Rev

Rev 7 | Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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