forked from galaxyproject/training-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (39 loc) · 1.16 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## ========================================
## Commands to build websites and slides
# Settings
MAKEFILES=Makefile $(wildcard *.mk)
JEKYLL=bundle exec jekyll
PARSER=bin/markdown_ast.rb
DST=_site
# Controls
.PHONY : commands clean files
all : commands
## commands : show all commands.
commands :
@grep -h -E '^##' ${MAKEFILES} | sed -e 's/## //g'
## serve : run a local server.
serve :
${JEKYLL} serve
## site : build files but do not run a server.
site :
${JEKYLL} build
## clean : clean up junk files.
clean :
@rm -rf ${DST}
@rm -rf .sass-cache
@find . -name .DS_Store -exec rm {} \;
@find . -name '*~' -exec rm {} \;
## install : install dependencies
install:
$(if $(shell uname -s) == "Darwin", \
sudo gem update —-system; \
sudo gem install -n /usr/local/bin/ jekyll; \
sudo gem install -n /usr/local/bin/ jemoji; \
sudo gem install -n /usr/local/bin/ jekyll-feed; \
sudo gem install -n /usr/local/bin/ bundler; \
sudo gem install -n /usr/local/bin/ nokogiri -v '1.6.8.1'; \
bundle install, \
gem install jekyll; \
gem install jemoji; \
gem install jekyll-feed; \
gem install bundler \)