Subversion Repositories Koakuma

Rev

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

Rev 3 Rev 4
Line 1... Line 1...
1
# $Id: Makefile 3 2024-10-01 14:31:23Z nishi $
1
# $Id: Makefile 4 2024-10-01 15:42:33Z 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 14... Line 14...
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
	if [ ! -e "$(PREFIX)/lib/koakuma/db/projects.db" ] ; then echo "<projects></projects>" > $(PREFIX)/lib/koakuma/db/projects.db ; fi
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/
17
	cp -rf Component/* $(PREFIX)/lib/koakuma/component/
18
	cp -rf Utility/* $(PREFIX)/lib/koakuma/utility/
18
	cp -rf Utility/* $(PREFIX)/lib/koakuma/utility/
-
 
19
	$(REPLACE) Tool/create-project.in > $(PREFIX)/bin/create-project
19
	cp -rf Tool/* $(PREFIX)/bin/
20
	$(REPLACE) Tool/launch-job.in > $(PREFIX)/bin/launch-job
20
	cp -rf koakuma.png $(PREFIX)/lib/koakuma/htdocs/static/
21
	cp -rf koakuma.png $(PREFIX)/lib/koakuma/htdocs/static/
21
	cp style.css $(PREFIX)/lib/koakuma/htdocs/static/
22
	cp style.css $(PREFIX)/lib/koakuma/htdocs/static/
22
	$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
23
	$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
23
	$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
24
	$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
24
	chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
25
	chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
25
	chmod +x $(PREFIX)/bin/create-task
26
	chmod +x $(PREFIX)/bin/create-project
26
	chmod +x $(PREFIX)/bin/launch-job
27
	chmod +x $(PREFIX)/bin/launch-job
27
	@echo
28
	@echo
28
	@echo Make sure $(PREFIX)/lib/koakuma/db is writable by your HTTPd user.
29
	@echo Make sure $(PREFIX)/lib/koakuma/db is writable by your HTTPd user.
29
	@echo By default, Koakuma stock Apache config uses $(PREFIX)/etc/koakuma/passwd
30
	@echo By default, Koakuma stock Apache config uses $(PREFIX)/etc/koakuma/passwd
30
	@echo for authentication.
31
	@echo for authentication.