Subversion Repositories Koakuma

Rev

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

Rev 11 Rev 12
Line 1... Line 1...
1
# $Id: Makefile 11 2024-10-02 00:56:50Z nishi $
1
# $Id: Makefile 12 2024-10-02 03:25: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
7
 
7
 
8
install: Component/* Tool/* Utility/* koakuma.cgi.in apache.conf.in
8
install: Component/* Tool/* Utility/* Static/* koakuma.cgi.in apache.conf.in
9
	mkdir -p $(PREFIX)/lib/koakuma/component/
9
	mkdir -p $(PREFIX)/lib/koakuma/component/
10
	mkdir -p $(PREFIX)/lib/koakuma/utility/
10
	mkdir -p $(PREFIX)/lib/koakuma/utility/
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/
Line 17... Line 17...
17
	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
18
	cp -rf Component/* $(PREFIX)/lib/koakuma/component/
18
	cp -rf Component/* $(PREFIX)/lib/koakuma/component/
19
	cp -rf Utility/* $(PREFIX)/lib/koakuma/utility/
19
	cp -rf Utility/* $(PREFIX)/lib/koakuma/utility/
20
	$(REPLACE) Tool/create-project.in > $(PREFIX)/bin/create-project
20
	$(REPLACE) Tool/create-project.in > $(PREFIX)/bin/create-project
21
	$(REPLACE) Tool/launch-job.in > $(PREFIX)/bin/launch-job
21
	$(REPLACE) Tool/launch-job.in > $(PREFIX)/bin/launch-job
22
	cp -rf koakuma.png $(PREFIX)/lib/koakuma/htdocs/static/
22
	cp -rf Static/* $(PREFIX)/lib/koakuma/htdocs/static/
23
	cp style.css $(PREFIX)/lib/koakuma/htdocs/static/
-
 
24
	$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
23
	$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
25
	$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
24
	$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
26
	chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
25
	chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
27
	chmod +x $(PREFIX)/bin/create-project
26
	chmod +x $(PREFIX)/bin/create-project
28
	chmod +x $(PREFIX)/bin/launch-job
27
	chmod +x $(PREFIX)/bin/launch-job