aboutsummaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorlizyn <zhiylin@outlook.com>2020-02-24 10:04:13 +0800
committerGitHub <noreply@github.com>2020-02-24 10:04:13 +0800
commitb19df31d78d881a43bcf6b3215e5fc3781e8e8aa (patch)
treed0d9861694a4b5e5fbfdbeb53c255ecd15fe9328 /GNUmakefile
parent4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff)
parent04d918cae0227c06a41d27fb6533dddbf30dfe71 (diff)
downloadwallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.gz
wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.zst
wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.zip
Merge pull request #1 from wallabag/master
Keep up with the master again
Diffstat (limited to 'GNUmakefile')
-rwxr-xr-xGNUmakefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index a04468cb..837f7103 100755
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -2,7 +2,14 @@ SHELL=bash
2TMP_FOLDER=/tmp 2TMP_FOLDER=/tmp
3RELEASE_FOLDER=wllbg-release 3RELEASE_FOLDER=wllbg-release
4 4
5ENV ?= prod 5# ensure the ENV variable is well defined
6AVAILABLE_ENV := prod dev test
7ifneq ($(filter $(ENV),$(AVAILABLE_ENV)),)
8 # all good
9else
10 # not good, force it to "prod"
11 override ENV = prod
12endif
6 13
7help: ## Display this help menu 14help: ## Display this help menu
8 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' 15 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -10,21 +17,26 @@ help: ## Display this help menu
10clean: ## Clear the application cache 17clean: ## Clear the application cache
11 rm -rf var/cache/* 18 rm -rf var/cache/*
12 19
13install: ## Install wallabag with the latest version 20install: customcss ## Install wallabag with the latest version
14 @./scripts/install.sh $(ENV) 21 @./scripts/install.sh $(ENV)
15 22
16update: ## Update the wallabag installation to the latest version 23update: ## Update the wallabag installation to the latest version
17 @./scripts/update.sh $(ENV) 24 @./scripts/update.sh $(ENV)
18 25
19dev: ## Install the latest dev version 26dev: ENV=dev
27dev: build customcss ## Install the latest dev version
20 @./scripts/dev.sh 28 @./scripts/dev.sh
21 29
22run: ## Run the wallabag built-in server 30run: ## Run the wallabag built-in server
23 @php bin/console server:run --env=dev 31 @php bin/console server:run --env=dev
24 32
25build: ## Run webpack 33build: ## Run webpack
34 @npm install
26 @npm run build:$(ENV) 35 @npm run build:$(ENV)
27 36
37customcss:
38 @touch web/custom.css
39
28prepare: clean ## Prepare database for testsuite 40prepare: clean ## Prepare database for testsuite
29ifdef DB 41ifdef DB
30 cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml 42 cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml