-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
43 lines (30 loc) · 1014 Bytes
/
Makefile
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
# Options:
# --future - publish posts with future dates
# -V - show verbose build log
.PHONY: genimages clean
all: test
test: Gemfile
bundle exec jekyll serve -H 127.0.0.1 -P 8080 -V --future
show: Gemfile
bundle exec jekyll serve -H $(shell hostname) -P 8080 -V --future
build: Gemfile
JEKYLL_ENV=production bundle exec jekyll build -V --future
public: build
rsync -r --delete-after _site/ getalt:/var/www/vhosts/getalt.org/
.jekyll-cache:
mkdir -p .jekyll-cache
chmod 777 .jekyll-cache
Gemfile.lock:
touch Gemfile.lock
chmod 666 Gemfile.lock
docker-build: Gemfile Gemfile.lock .jekyll-cache
docker run --rm --volume="$$PWD:/srv/jekyll" -e JEKYLL_ENV=production -it jekyll/jekyll jekyll build
docker-public: docker-build
rsync -r --delete-after _site/ getalt:/var/www/vhosts/getalt.org/
# Generate YAML files with image lists grouped by solution. This
# thing is written in Ruby to better integrate with Jekyll-based
# infrastructure.
genimg:
ruby scripts/genimg.rb
clean:
git clean -fdx