2019-11-09 16:56:34 +00:00
|
|
|
ifneq (,)
|
|
|
|
.error This Makefile requires GNU Make.
|
|
|
|
endif
|
2018-12-09 00:55:12 +00:00
|
|
|
|
2019-11-09 16:56:34 +00:00
|
|
|
SHELL = /bin/sh
|
2018-12-09 00:55:12 +00:00
|
|
|
|
|
|
|
|
2018-12-27 12:02:57 +00:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# Misc Targets
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
update-readme:
|
|
|
|
cat "../README.md" \
|
2019-11-09 16:56:34 +00:00
|
|
|
| perl -00 -pe "s/<!-- modules -->.*<!-- \/modules -->/<!-- modules -->\n$$(./scripts/get-modules.sh)\n<!-- \/modules -->/s" \
|
2018-12-28 21:45:30 +00:00
|
|
|
> "../README.md.tmp"
|
|
|
|
yes | mv -f "../README.md.tmp" "../README.md"
|
2018-12-27 12:02:57 +00:00
|
|
|
|
2019-11-09 16:56:34 +00:00
|
|
|
|
2018-12-09 00:55:12 +00:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
2019-11-09 16:56:34 +00:00
|
|
|
# Startup Targets
|
2018-12-09 00:55:12 +00:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
###
|
2019-11-09 16:56:34 +00:00
|
|
|
### Configure .env file
|
|
|
|
###
|
|
|
|
configure: ../.env
|
|
|
|
ifeq ($(KEY),)
|
|
|
|
$(error Target requires KEY to be set.)
|
2018-12-09 00:55:12 +00:00
|
|
|
endif
|
2019-11-09 16:56:34 +00:00
|
|
|
ifeq ($(VAL),)
|
|
|
|
$(error Target requires VAL to be set.)
|
2018-12-09 00:55:12 +00:00
|
|
|
endif
|
2019-11-09 16:56:34 +00:00
|
|
|
@$(PWD)/scripts/env-setvar.sh "$(KEY)" "$(VAL)"
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### Pull currently setup images
|
|
|
|
###
|
|
|
|
pull: ../.env
|
|
|
|
@$(PWD)/scripts/compose-pull.sh
|
2018-12-09 00:55:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
2019-11-09 16:56:34 +00:00
|
|
|
### Startup Devilbox
|
|
|
|
###
|
|
|
|
start: ../.env
|
|
|
|
@$(PWD)/scripts/compose-start.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
### Show Docker logs
|
|
|
|
###
|
|
|
|
logs:
|
|
|
|
@$(PWD)/scripts/compose-logs.sh
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# Test Targets
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-modules:
|
|
|
|
$(PWD)/tests/curl-vhosts.sh "modules"
|
|
|
|
$(PWD)/tests/php-vhosts.sh "modules"
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-config:
|
|
|
|
$(PWD)/tests/config-xdebug.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-intranet:
|
|
|
|
$(PWD)/tests/intranet-homepage.sh
|
|
|
|
$(PWD)/tests/intranet-vhost.sh
|
|
|
|
$(PWD)/tests/intranet-email.sh
|
|
|
|
$(PWD)/tests/intranet-redis.sh
|
|
|
|
$(PWD)/tests/intranet-memcached.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-vendors:
|
|
|
|
$(PWD)/tests/vendor-adminer.sh
|
|
|
|
$(PWD)/tests/vendor-phpmyadmin.sh
|
|
|
|
$(PWD)/tests/vendor-phppgadmin.sh
|
|
|
|
$(PWD)/tests/vendor-phpredmin.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-vhosts:
|
|
|
|
$(PWD)/tests/vhost-directory_index.sh
|
|
|
|
$(PWD)/tests/vhost-vhostgen_default_template.sh
|
|
|
|
$(PWD)/tests/vhost-vhostgen_customize.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-rproxies:
|
|
|
|
$(PWD)/tests/rproxy-javascript.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-ssl:
|
|
|
|
$(PWD)/tests/ssl-intranet.sh
|
|
|
|
$(PWD)/tests/ssl-vhost.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-bind:
|
|
|
|
@echo noop
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-autostart:
|
|
|
|
$(PWD)/tests/autostart-examples.sh
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
###
|
|
|
|
###
|
|
|
|
test-smoke-framework-cakephp:
|
|
|
|
$(PWD)/tests/framework-cakephp.sh
|
|
|
|
|
|
|
|
test-smoke-framework-drupal:
|
|
|
|
$(PWD)/tests/framework-drupal.sh
|
2018-12-27 12:16:30 +00:00
|
|
|
|
|
|
|
|
2018-12-09 00:55:12 +00:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# Helper Targets
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
|
2019-11-09 16:56:34 +00:00
|
|
|
###
|
|
|
|
### Ensure .env file exists
|
|
|
|
###
|
|
|
|
../.env:
|
|
|
|
install -m 0644 ../env-example ../.env
|