diff options
author | Evan Read <eread@gitlab.com> | 2022-06-01 12:50:44 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-06-01 12:50:44 +0300 |
commit | c0559410d2124b5c12dac59b513a0ef09a940336 (patch) | |
tree | 8ad536d5f977f539c20f3996890efcd45a06ecf8 | |
parent | 7587182c0ac4d601fb4dee0c9cf4dd9c4ab5b089 (diff) |
Split up and expand setup Make targets
-rw-r--r-- | Makefile | 32 |
1 files changed, 26 insertions, 6 deletions
@@ -1,4 +1,4 @@ -.PHONY: all clean test up +.PHONY: all clean setup test up INFO = \033[32m INFO_END = \033[0m @@ -59,11 +59,31 @@ view: compile live: compile @printf "\n$(INFO)INFO: Starting GitLab documentation site with live reload..$(INFO_END)\n" - bundle exec nanoc live - -setup: - @printf "\n$(INFO)INFO: Installing dependencies..$(INFO_END)\n" - @asdf install && bundle install && yarn install --frozen-lockfile + @bundle exec nanoc live + +setup-asdf: + @printf "\n$(INFO)INFO: Installing asdf plugins..$(INFO_END)\n" + @asdf plugin add ruby || true + @asdf plugin add nodejs || true + @asdf plugin add yarn || true + @printf "\n$(INFO)INFO: Updating asdf plugins..$(INFO_END)\n" + @asdf plugin update ruby + @asdf plugin update nodejs + @asdf plugin update yarn + +install-asdf-dependencies: + @printf "\n$(INFO)INFO: Installing asdf dependencies..$(INFO_END)\n" + @asdf install + +install-ruby-dependencies: + @printf "\n$(INFO)INFO: Installing Ruby dependencies..$(INFO_END)\n" + @bundle install + +install-nodejs-dependencies: + @printf "\n$(INFO)INFO: Installing Node.js dependencies..$(INFO_END)\n" + @yarn install --frozen-lockfile + +setup: setup-asdf install-asdf-dependencies install-ruby-dependencies install-nodejs-dependencies update: @printf "\n$(INFO)INFO: Stash any changes, switch to main branch, and pull updates to GitLab Docs project..$(INFO_END)\n" |