forked from johno/pixyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 906 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
export PATH := _bin:$(PATH)
_posts/%.md: _source/%.md
cp "$<" "$@"
_posts/%.md: _source/%.org _deploy/md-export.el
emacs-script _deploy/md-export.el "$<" "$@"
_drafts/%.md: _source/%.org _deploy/md-export.el
emacs-script _deploy/md-export.el "$<" "$@"
publish: _posts/2015-10-04-building-a-geojson-travel-log-an-introduction-to-org-mode-and-babel.md \
_posts/2016-04-20-sidestepping-heroku-limits-with-postgresql-upsert.md \
_posts/2015-10-13-visualizing-24-hours-of-medical-students-cramming-anatomy.md \
_posts/2018-08-23-real-world-ledger-part-1.md \
_drafts/how-to-export-org-mode-from-command-line.md
build: clean
$(MAKE) publish
bash -ic 'JEKYLL_ENV=production bundle exec jekyll build --config _config.yml,_config_production.yml'
deploy: build
lftp -f _deploy/upload.txt
clean:
rm -f _posts/*
rm -rf _production/*
rm -rf _site/*
rm -rf _drafts/*