Skip to content

Commit

Permalink
Instructions to get it working on my Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Nov 12, 2024
1 parent 1aa6aa2 commit 44a3875
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
MVN ?= mvn
JEKYLL_SRC_DIR := src
SHELL := bash
# to use ruby 2.7 on macOS:
# - brew tap homebrew/core --force
# - brew edit ruby@2
# - comment out the line starting with "disable!"
# - HOMEBREW_NO_INSTALL_FROM_API=1 brew install ruby@2
# - /opt/homebrew/opt/[email protected]/bin/bundle config build.nokogiri --use-system-libraries
# - run this Makefile with `BUNDLE=/opt/homebrew/opt/[email protected]/bin/bundle make'
BUNDLE ?= bundle
# RUBYOPT='-W:no-deprecated' does not work for some reason (https://stackoverflow.com/questions/60350374/cannot-suppress-ruby-2-7-0-warnings)
RUBY := RUBYOPT=-W0 bundle exec
RUBY := RUBYOPT=-W0 $(BUNDLE) exec
JEKYLL := $(RUBY) jekyll
JEKYLL_SRC_FILES_CONTENT := $(shell find $(JEKYLL_SRC_DIR)/{_wiki,_wiki_ui,_wiki_webui} -type f -not -name '_*' -not -name '*.png' -not -name '*.jpg' )
JEKYLL_SRC_FILES_MUSTACHE := $(shell find $(JEKYLL_SRC_DIR)/ -type f -name '_Sidebar.md')
Expand Down Expand Up @@ -30,10 +38,10 @@ baseurl := $(call yaml_get,$(CONFIG_FILE),baseurl)
.PHONY : all
all : $(JEKYLL_DIR)/_site

ifneq (,$(findstring bundle exec,$(RUBY)))
ifneq (,$(findstring $(BUNDLE) exec,$(RUBY)))
.SECONDARY : gems
gems : Gemfile.lock
bundle install --path gems
$(BUNDLE) install --path gems
else
.PHONY : gems
gems :
Expand Down

0 comments on commit 44a3875

Please sign in to comment.