forked from faktaoklimatu/web-cz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 907 Bytes
/
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
INFOGRAPHICS_FOLDER=assets/infographics
INFOGRAPHICS_SRC=$(wildcard _infografiky/*/*.pdf)
INFOGRAPHICS_DST=$(addprefix $(INFOGRAPHICS_FOLDER)/,$(notdir $(INFOGRAPHICS_SRC)))
STUDIES_FOLDER=assets/studies
STUDIES_SRC=$(wildcard _studie/*.jpg)
STUDIES_DST=$(addprefix $(STUDIES_FOLDER)/,$(notdir $(STUDIES_SRC)))
REPO_URL=https://github.com/mukrop/faktaoklimatu
all: web
reinstall:
rm Gemfile.lock
bundle install
local: web
bundle exec jekyll serve
web: $(INFOGRAPHICS_DST) $(STUDIES_DST)
check: web
@echo "Building the website using Jekyll ..."
@bundle exec jekyll build
@echo "Running tests on the generated sites using html-proofer ..."
@bundle exec ruby utils/test.rb
clean:
rm -rf $(INFOGRAPHICS_FOLDER)
$(INFOGRAPHICS_FOLDER)/%.pdf: _infografiky/*/%.pdf
utils/convert-infographic.sh $< $@
$(STUDIES_FOLDER)/%.jpg: _studie/%.jpg
mkdir -p $(@D)
cp -v $< $@
.PHONY: all web local clean