ifneq (,) .error This Makefile requires GNU Make. endif SHELL = /bin/sh # ------------------------------------------------------------------------------------------------- # Misc Targets # ------------------------------------------------------------------------------------------------- update-readme: cat "../README.md" \ | perl -00 -pe "s/.*/\n$$(./scripts/get-modules.sh)\n/s" \ > "../README.md.tmp" yes | mv -f "../README.md.tmp" "../README.md" # ------------------------------------------------------------------------------------------------- # Startup Targets # ------------------------------------------------------------------------------------------------- ### ### Configure .env file ### configure: ../.env ifeq ($(KEY),) $(error Target requires KEY to be set.) endif ifeq ($(VAL),) $(error Target requires VAL to be set.) endif @$(PWD)/scripts/env-setvar.sh "$(KEY)" "$(VAL)" ### ### Pull currently setup images ### pull: ../.env @$(PWD)/scripts/compose-pull.sh ### ### 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 # ------------------------------------------------------------------------------------------------- # Helper Targets # ------------------------------------------------------------------------------------------------- ### ### Ensure .env file exists ### ../.env: install -m 0644 ../env-example ../.env