aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..211e6ef
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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