Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-12-14 10:21:57 +0300
committerEvan Read <eread@gitlab.com>2022-12-14 10:21:57 +0300
commit0a3f3fdc47ead6d351007ff82a17584453703138 (patch)
tree0287245a751f774d45794d9579440e54ce1accb9 /Makefile
parent233ac4a672c78d384f9ba8ee788b03b2e3643388 (diff)
Suggest running make setup when compile fails
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4cfff9d1..ca8aa1d5 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ up: setup view
compile:
@printf "\n$(INFO)INFO: Compiling GitLab documentation site...$(END)\n"
- @bundle exec nanoc compile
+ @bundle exec nanoc compile || (printf "$(ERROR)ERROR: Compilation failed! Try running 'make setup'.$(END)\n" && exit 1)
view: compile
@printf "\n$(INFO)INFO: Starting GitLab documentation site...$(END)\n"