replace deploy script w/ Makefile because i'm cool

This commit is contained in:
anna 2021-04-16 02:29:41 +02:00
parent f81537ff7e
commit 38542c6d23
Signed by: fef
GPG key ID: EC22E476DC2D3D84
3 changed files with 19 additions and 11 deletions

18
Makefile Executable file
View file

@ -0,0 +1,18 @@
JEKYLL ?= bundle exec jekyll
WWW_ROOT ?= $(HOME)/pub/www
BUILD_ROOT = $(PWD)/_site
site:
$(JEKYLL) build
deploy: site
rm -rf $(WWW_ROOT)
cp -r $(BUILD_ROOT) $(WWW_ROOT)
gzip -9kr $(WWW_ROOT)
clean:
rm -rf $(BUILD_ROOT)
all: site

View file

@ -22,6 +22,6 @@ exclude:
- .gemfiles/
- Gemfile
- Gemfile.lock
- deploy.sh
- Makefile
- README.md
- LICENSE

View file

@ -1,10 +0,0 @@
#!/bin/sh
SRC_ROOTDIR="$HOME/src/fef.moe"
WEB_ROOTDIR="$HOME/pub/www"
cd "$SRC_ROOTDIR"
jekyll build
rm -rf "$WEB_ROOTDIR"
cp -r _site "$WEB_ROOTDIR"
gzip -9kr "$WEB_ROOTDIR"