forked from carpentries/carpentries.org-archive
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 1.06 KB
/
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
all : commands
## commands : show all commands.
commands :
@grep -E '^##' Makefile | sed -e 's/## //g'
## get_remote : get remote files needed to build the site
get_remote:
@curl -o _includes/_head_issue_table.html https://files.carpentries.org/_head_issue_table.html --retry 3
@curl -o _includes/_content_issue_table.html https://files.carpentries.org/_content_issue_table.html --retry 3
@curl -o _includes/_content_lesson_table.html https://files.carpentries.org/_content_lesson_table.html --retry 3
## serve : run a local server.
serve : get_remote
bundle exec jekyll serve --config _config.yml,_config_dev.yml --future --incremental
## site : build files but do not run a server.
site : get_remote
bundle exec jekyll build --incremental
## 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 {} \;