-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 777 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
43
44
45
46
47
48
49
50
#J=bundle exec jekyll
J=jekyll
all: site
site: clean
$J build #--lsi
chmod -R a+rx ./_site/
clean:
rm -rf _site/
local_all:
$J serve --watch --drafts
local:
$J serve --watch --drafts --limit_posts 300
profile:
$J build --profile --limit_posts 1000
refresh:
@echo "\nDeleting all posts..."
rm -rf _posts/*
@echo "\nGenerating posts..."
tools/generate_posts.py
@echo "\nDone."
refresh_push:
@echo "Updating repo from GitHub..."
git pull
@echo "\nDeleting all posts..."
rm -rf _posts/*
@echo "\nGenerating posts..."
tools/generate_posts.py
@echo "\nAdding any new posts to git..."
git add _posts/*
@echo "\nCommitting changes..."
git commit -a -S -m 'Refreshed links from Pinboard.'
@echo "\nPushing to GitHub..."
git push
@echo "\nDone."