Line 1... |
Line 1... |
1 |
# $Id: Makefile 13 2024-10-02 06:39:33Z nishi $
|
1 |
# $Id: Makefile 17 2024-10-02 07:31:01Z 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 19... |
Line 19... |
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 Static/* $(PREFIX)/lib/koakuma/htdocs/static/
|
22 |
cp -rf Static/* $(PREFIX)/lib/koakuma/htdocs/static/
|
23 |
$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
|
23 |
$(REPLACE) koakuma.cgi.in > $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
|
24 |
$(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf
|
24 |
if [ ! -e "$(PREFIX)/etc/koakuma/apache.conf" ] ; then $(REPLACE) apache.conf.in > $(PREFIX)/etc/koakuma/apache.conf ; fi
|
25 |
cp cgi.conf $(PREFIX)/etc/koakuma/
|
25 |
if [ ! -e "$(PREFIX)/etc/koakuma/cgi.conf" ] ; then cp cgi.conf $(PREFIX)/etc/koakuma/ ; fi
|
26 |
chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
|
26 |
chmod +x $(PREFIX)/lib/koakuma/cgi-bin/koakuma.cgi
|
27 |
chmod +x $(PREFIX)/bin/create-project
|
27 |
chmod +x $(PREFIX)/bin/create-project
|
28 |
chmod +x $(PREFIX)/bin/launch-job
|
28 |
chmod +x $(PREFIX)/bin/launch-job
|
29 |
@echo
|
29 |
@echo
|
30 |
@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.
|