Mercurial > web-octave
comparison Makefile @ 182:7a664b44fd8d
Use Bundler for consistent development environment with Jekyll.
* README.md: Update documentation for new development workflow
* Makefile: Remove custom tool version checks.
* _config.yml: Adapt to Bundler workflow.
* Gemfile: Document requirements for Bundler.
* Gemfile.lock: Document currently used tool versions for Bundler.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 20 May 2020 14:05:39 +0900 |
parents | 839113398e6f |
children | acf1b848de1d |
comparison
equal
deleted
inserted
replaced
181:0fe4f2163a9c | 182:7a664b44fd8d |
---|---|
6 | 6 |
7 CVS_RSH=ssh | 7 CVS_RSH=ssh |
8 | 8 |
9 export CVS_RSH | 9 export CVS_RSH |
10 | 10 |
11 CHECK_GEM := $(shell command -v gem 2> /dev/null) | 11 deploy: | $(SAVANNAH_DIR) |
12 CHECK_JEKYLL := $(shell command -v jekyll 2> /dev/null) | |
13 CHECK_JEKYLL_VERSION = $(shell jekyll --version | grep ^jekyll | sed 's/^.* //g') | |
14 | |
15 deploy: | $(SAVANNAH_DIR) check_prerequisites | |
16 # | 12 # |
17 # Build static website into the subdirectory `_site` using Jekyll | 13 # Build static website into the subdirectory `_site` using Jekyll via |
14 # Bundler | |
18 # | 15 # |
19 jekyll build | 16 bundle exec jekyll build |
20 # | 17 # |
21 # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 18 # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
22 # DANGEROUS STEP, omitted by default. | 19 # DANGEROUS STEP, omitted by default. |
23 # | 20 # |
24 # Remove all previous files in the target directory, but no directories | 21 # Remove all previous files in the target directory, but no directories |
55 cd $(SAVANNAH_DIR) && cvs commit | 52 cd $(SAVANNAH_DIR) && cvs commit |
56 # | 53 # |
57 # Now everything should be visible to the world. | 54 # Now everything should be visible to the world. |
58 # | 55 # |
59 | 56 |
60 check_prerequisites: | |
61 ifndef CHECK_GEM | |
62 $(error "Command `gem` is not available please install rubygems") | |
63 endif | |
64 ifndef CHECK_JEKYLL | |
65 $(error "Command `jekyll` is not available. ${CHECK_JEKYLL_VERSION} Try `gem install jekyll`") | |
66 endif | |
67 ifneq "3.3" "$(word 1, $(sort 3.3 $(CHECK_JEKYLL_VERSION)))" | |
68 $(error "Detected Jekyll version ${CHECK_JEKYLL_VERSION} (>= 3.3 required).") | |
69 endif | |
70 @echo "All prerequisites fulfilled." | |
71 | |
72 $(SAVANNAH_DIR): | 57 $(SAVANNAH_DIR): |
73 cd .. \ | 58 cd .. \ |
74 && cvs -z3 -d:ext:$(USRNAME)@cvs.savannah.gnu.org:/web/octave checkout -P octave | 59 && cvs -z3 -d:ext:$(USRNAME)@cvs.savannah.gnu.org:/web/octave checkout -P octave |
75 | 60 |
76 .DEFAULT_GOAL := | 61 .DEFAULT_GOAL := |