Skip to content

Better make scripts #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 50 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ docs:
docker run -p 4000:80 segment-docs:latest


.PHONY: deps
deps:
docker run -it \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
bundle install

.PHONY: build
build:
docker run -it \
Expand All @@ -22,10 +15,57 @@ build:
bundle install && \
bundle exec jekyll build

.PHONY: dev
dev:
.PHONY: nav
nav:
docker run -it \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
rake nav:update

.PHONY: catalog
catalog:
docker run -it \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
rake catalog:update

.PHONY: docker-clean
docker-clean:
docker run -it \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
jekyll clean

.PHONY: docker-deps
docker-deps:
docker run -it \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
bundle install

.PHONY: docker-dev
docker-dev:
docker run -it \
-p 4000:4000 \
--volume="$(PWD):/srv/jekyll" \
jekyll/jekyll \
jekyll serve -H 0.0.0.0
jekyll serve --incremental -H 0.0.0.0
.PHONY: docs

.PHONY: env
env:
gem install bundler && \
bundle install

.PHONY: clean
clean:
bundle exec jekyll clean

.PHONY: deps
deps:
bundle install

.PHONY: dev
dev:
make clean && \
bundle exec jekyll serve --incremental -H 0.0.0.0