-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
33 lines (28 loc) · 1.04 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
.PHONY: clean build serve serve.detached
all: test
clean:
# Stop the detached Jekyll web server.
-pkill -f -9 jekyll
# Delete the builds.
rm -fr open-sdg-site-starter
rm -fr open-sdg
install: clean
git clone https://github.com/open-sdg/open-sdg-site-starter.git
git clone https://github.com/open-sdg/open-sdg.git
# Copy all the theme files into the site starter.
cp -r open-sdg/_includes/* open-sdg-site-starter/_includes/
cp -r open-sdg/_layouts/* open-sdg-site-starter/_layouts/
cp -r open-sdg/_sass/* open-sdg-site-starter/_sass/
cp -r open-sdg/assets/* open-sdg-site-starter/assets/
# Copy the required files into the site starter.
cp tests/_config.yml open-sdg-site-starter/
cp tests/Gemfile open-sdg-site-starter/
# Create a symlink to our plugin files.
ln -s ../lib/jekyll-open-sdg-plugins open-sdg-site-starter/_plugins
# Install Ruby dependencies.
cd open-sdg-site-starter && bundle install
build:
cd open-sdg-site-starter && bundle exec jekyll build
serve:
cd open-sdg-site-starter && bundle exec jekyll serve
test: install build