-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
61 lines (50 loc) · 2.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ERR=*** composer not found
HINT=Please, goto https://getcomposer.org and install it globally.
all: composer-install
quickstart:
@echo
@echo "If you want, run the following commands inside the main directory:"
@echo " make config - if you need help to configure php-proxy-keyserver"
@echo " make skins - if you wish to download extra skins"
@echo " make help - if you wish to read extended help"
help:
@echo
@echo "Available commands inside the main directory:"
@echo " make - install dependencies (if downloaded directly form github)"
@echo " make config - create etc/php-proxy-keyserver.ini if not exists"
@echo " make skins - download extra skins at skins/*"
@echo " make test - run test suite"
@echo " make coverage - send coverage report"
@echo " make debug - follow output of logs"
@echo " make clean - remove logs"
@echo " make quickstart - show minimal help"
@echo " make help - show extended help"
config:
@cd etc && test -e php-proxy-keyserver.ini || cp php-proxy-keyserver.ini.dist php-proxy-keyserver.ini
@echo
@echo "----- PLEASE, EDIT YOUR CONFIG FILES -----"
@echo
@echo "1) Edit ${PWD}/etc/php-proxy-keyserver.ini"
@echo "2) Set ${PWD}/pub as the DocumentRoot of your domain in your webserver configs."
@echo "3) The recommended setup is as follows:"
@echo " - webserver listen to public ip ports 80, 443 and 11371."
@echo " - keyserver listen to public ip ports 11370 and local ip port 11371."
@echo
@echo "When done, please visit your website and validate that you can search/retrieve/submit pgp public keys."
@echo "Also, validate if your keyserver is behind the webserver (the keyserver must not be visible in the HTTP/S response headers)."
skins: .gitmodules
@git submodule init
@git submodule update
composer-install:
$(if $(shell sh -c 'composer -v >/dev/null 2>&1 && echo 1'),,$(warning $(ERR));$(error $(HINT)))
@composer self-update
@composer install
test: test/phpunit.xml.dist
@vendor/bin/phpunit -c test
coverage: test/clover.xml
@vendor/bin/coveralls -v -c test/.coveralls.yml
debug: log/php-proxy-keyserver.log
@tail -f log/php-proxy-keyserver.log
clean: log
@rm -rf log
.PHONY: test skins