forked from EasyRPG/easyrpg.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.19 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
48
49
50
51
52
53
.PHONY: default compile all check clean bundler-env install install-devel install-ci
default: compile
bin/nanoc view
compile: .bundle
bin/nanoc compile
all: clean compile check
check: .bundle
bin/nanoc check internal_links external_links stale css html
clean:
rm -rf output/
distclean: clean
rm -rf tmp/ .bundle bin vendor
dev:
bin/nanoc live_command
# default installation
.bundle:
@[ -e .bundle ] || $(MAKE) install
bundler-env:
@echo "Configuring bundler environment"
bundle config set --local clean true
bundle config set --local path vendor/bundle
install: bundler-env
@echo "Installing only main gems, cleaning old gems"
@bundle config set --local without nanoc,test
bundle install
@echo "Making gems available"
bundle binstubs --force nanoc
install-devel: bundler-env
@echo "Installing all gems, cleaning old gems"
@bundle config unset --local without
bundle install
@echo "Making gems available"
bundle binstubs --force nanoc guard
install-ci: bundler-env
@echo "Installing main and testing gems, cleaning old gems"
@bundle config set --local deployment true
@bundle config set --local without nanoc
bundle install
@echo "Making gems available"
bundle binstubs --force nanoc