Update makefile with better explanation

This commit is contained in:
Jansen Price 2020-09-11 02:30:40 -05:00
parent b6c8e590de
commit 5ce094362e
1 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,3 @@
.SILENT: help
ccyellow = $(shell echo "\033[33m")
ccend = $(shell tput op)
notice = $(ccyellow) $(0) $(ccend)
@ -14,7 +12,11 @@ CONF_PATH = /etc/orbit
LOG_PATH = /var/log/orbit
help:
echo "To run tests, run make test, to install on system run make install"
@echo "Orbit Gemini protocol server"
@echo "To run tests, run 'make test'"
@echo "To install as a service on your system run:"
@echo " 'sudo make install ORBIT_PATH=localhost'"
@echo " But replace localhost with your desired hostname"
test:
cd tests; ../vendor/bin/phpunit .
@ -44,6 +46,7 @@ ifeq (,$(wildcard $(CONF_PATH)/certs/$(ORBIT_HOSTNAME).cert.pem))
install -d $(CONF_PATH)/certs
install certs/$(ORBIT_HOSTNAME).cert.pem $(CONF_PATH)/certs/$(ORBIT_HOSTNAME).cert.pem
install certs/$(ORBIT_HOSTNAME).key.pem $(CONF_PATH)/certs/$(ORBIT_HOSTNAME).key.pem
rm -rf certs
endif
install_user:
@ -63,7 +66,7 @@ install: install_bin install_conf install_cert install_user install_service
@echo
@echo "--------------------------------"
@echo "done"
@echo "> The service runs with the user $(_user), which I created for you"
@echo "> The service runs with the user $(_user)"
@echo "> The actual orbit script is at $(EXEC_PATH)"
@echo " - But that is just a symlink to $(_path)/bin/orbit"
@echo "> I created a config file at $(CONF_PATH)/config.ini"