-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
37 lines (30 loc) · 1.13 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
.PHONY: help
help: ## Displays this list of targets with descriptions
@echo "The following commands are available:\n"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: update-sitepackage
update-sitepackage: ## Update the site package
./Build/DownloadSitePackage/generate_sitepackage.sh
.PHONY: update-composer
update-composer: ## Update the site package
ddev composer install
.PHONY: setup
setup:
@echo "Please note: The password to use during the interactive setup is 'db'."
ddev typo3 setup --force
ddev typo3 extension:setup
@echo "Please note: The password to use during the interactive setup is 'db'."
.PHONY: update
update: update-sitepackage update-composer ## Update everything
.PHONY: install
install: update setup ## Install everything
.PHONY: delete
delete: ## Delete DDEV and Database
ddev delete --omit-snapshot
rm -rf vendor
rm -rf var
rm -rf public
rm config/system/additional.php
.PHONY: delete-db
delete-db: ## Delete DDEV and Database
ddev exec -s db 'mysql --database=mysql -e "DROP DATABASE db; CREATE DATABASE db;"'