blob: 211e6efc9d4dd53a320af1bbbb6dc41a64d9ce79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
SHELL := /bin/bash
VENDOR_DIR = assets/vendor/
BUNDLER := bundler
JEKYLL := jekyll
CURL := curl
GEM := gem
GIT := git
jQueryVer := `grep jquery-ver _config.yml |sed 's/"//g' |awk '{ print $$2 }'`
BoostrapVer := `grep bootstrap-ver _config.yml |sed 's/"//g' |awk '{ print $$2 }'`
default:
@echo ""
@echo "This is the build script for Loki's Stories website's Jekyll source."
@echo ""
@echo "make check - Checks that Jekyll is ready to run, also runs the 'vendor' command that downloads needed vendor files."
@echo ""
@echo "make install"
@echo ""
@echo "make pull - Command to update via the git command (git install required)"
@echo ""
@echo "make vendor - Command to download the needed vendor files (jQuery, Bootstrap."
@echo ""
@echo "make update - Command to run 'git pull' then 'gem update' then 'bundler update'"
@echo ""
@echo "make build - Command ro run 'bundler exec jekyll build'"
@echo ""
@echo "make run - Command to run "
@echo ""
@echo "make publish"
check:
@$(BUNDLER) exec $(JEKYLL) doctor
clean:
@$(BUNDLER) exec $(JEKYLL) clean
@rm -rf assets/vendor
install:
@$(BUNDLER) install
pull:
@$(GIT) pull
update:
@$(GIT) pull
@$(GEM) update
@$(BUNDLER) update
build:
@$(BUNDLER) exec $(JEKYLL) build
b: build
publish:
@JEKYLL_ENV=production $(BUNDLER) exec $(JEKYLL) build --trace
p: publish
run: pull publish
|