diff options
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,9 @@ | |||
1 | TMP_FOLDER=/tmp | 1 | TMP_FOLDER=/tmp |
2 | RELEASE_FOLDER=wllbg-release | 2 | RELEASE_FOLDER=wllbg-release |
3 | 3 | ||
4 | ENV=prod | 4 | ifndef ENV |
5 | ENV=prod | ||
6 | endif | ||
5 | 7 | ||
6 | help: ## Display this help menu | 8 | help: ## Display this help menu |
7 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | 9 | @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
@@ -15,14 +17,14 @@ install: ## Install wallabag with the latest version | |||
15 | update: ## Update the wallabag installation to the latest version | 17 | update: ## Update the wallabag installation to the latest version |
16 | @sh scripts/update.sh $(ENV) | 18 | @sh scripts/update.sh $(ENV) |
17 | 19 | ||
18 | run: ## Run the wallabag server | 20 | run: ## Run the wallabag built-in server |
19 | php bin/console server:run --env=$(ENV) | 21 | @php bin/console server:run --env=$(ENV) |
20 | 22 | ||
21 | build: ## Run grunt | 23 | build: ## Run grunt |
22 | @grunt | 24 | @grunt |
23 | 25 | ||
24 | test: ## Launch wallabag testsuite | 26 | test: ## Launch wallabag testsuite |
25 | @ant prepare && phpunit -v | 27 | @ant prepare && vendor/phpunit/phpunit/phpunit -v |
26 | 28 | ||
27 | release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). | 29 | release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). |
28 | ifndef VERSION | 30 | ifndef VERSION |