-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Makefile
36 lines (27 loc) · 950 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
PY=/usr/bin/env python3
all : commands
## commands : show all commands.
commands :
@grep -E '^##' Makefile | sed -e 's/## //g'
## amy : update workshop and other data from AMY.
amy :
${PY} bin/get-amy.py -u https://amy.carpentries.org/api/v1/ -o _data/amy.yml --tags-any=DC
## serve : run a local server.
serve :
bundle exec jekyll serve --config _config.yml,_config_dev.yml --future
## site : build files but do not run a server.
site :
bundle exec jekyll build --incremental
## test-site : limit post to make it faster, useful to troubleshoot
test-site :
bundle exec jekyll build --limit_post 10
## install : install missing Ruby gems using bundle.
install :
bundle install
#-------------------------------------------------------------------------------
## clean : clean up junk files.
clean :
rm -rf _site
rm -rf .sass-cache
find . -name '*~' -exec rm {} \;
find . -name .DS_Store -exec rm {} \;