diff options
author | Matt Rude <[email protected]> | 2020-01-27 23:46:37 +0000 |
---|---|---|
committer | Matt Rude <[email protected]> | 2020-01-27 23:46:37 +0000 |
commit | 4c41448b1ceb33cf3636f1e80422d029c100206a (patch) | |
tree | f030599e6de541817ae78892e8760c684fd21963 /Makefile | |
parent | a126a1690f6ec935193878b2ee65fbde99537999 (diff) | |
download | therudes_com-4c41448b1ceb33cf3636f1e80422d029c100206a.tar.gz therudes_com-4c41448b1ceb33cf3636f1e80422d029c100206a.tar.bz2 therudes_com-4c41448b1ceb33cf3636f1e80422d029c100206a.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 61 |
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 |