Skip to content

Commit

Permalink
Use $(BUNDLE) variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-belkin committed Jun 25, 2021
1 parent abf5beb commit 9f799e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ endif

## * serve : render website and run a local server
serve : lesson-md index.md bundler .vendor/bundle
@bundle exec jekyll serve
@$(BUNDLE) exec jekyll serve

## * site : build website but do not run a server
site : update-bundle site-offline
@:

## * site-offline : same as 'site' but doesn't update Ruby gems
site-offline : lesson-md index.md bundler .vendor/bundle
@bundle exec jekyll build
@$(BUNDLE) exec jekyll build

## * docker-serve : use Docker to serve the site
docker-serve :
Expand Down Expand Up @@ -195,21 +195,21 @@ else
endif

.bundle/config : bundler
@bundle config set --local path '.vendor/bundle'
@$(BUNDLE) config set --local path '.vendor/bundle'

## * bundle : install Ruby gems (required for building lesson website locally)
bundle : .vendor/bundle
@:

.vendor/bundle: Gemfile.lock .bundle/config bundler
$(info Installing Ruby gems)
@bundle install
@$(BUNDLE) install
@touch .vendor/bundle

## * update-bundle : update Ruby gems (required for building lesson website locally)
update-bundle : Gemfile.lock .bundle/config bundler
$(info Updating Ruby gems)
@bundle update --quiet
@$(BUNDLE) update --quiet
@touch .vendor/bundle

Gemfile:
Expand All @@ -220,7 +220,7 @@ else
endif

Gemfile.lock: Gemfile bundler
@bundle lock --update
@$(BUNDLE) lock --update

index.md :
ifeq (, $(wildcard index.md))
Expand Down

0 comments on commit 9f799e7

Please sign in to comment.