-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (22 loc) · 609 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
SHELL := /bin/bash
all: _site
clean:
rm -rf _site build_source
distclean: clean
$(MAKE) -C schemas distclean
docs/unitsml/unitsml-v1.0/index.html:
$(MAKE) -C schemas
build_source: docs/unitsml/unitsml-v1.0/index.html
mkdir -p $@; \
cp -a source/* build_source; \
cp -a schemas/* build_source;
_site: build_source
bundle exec jekyll build
serve: _site
bundle exec jekyll serve --trace
update-init:
git submodule update --init
update-modules:
git submodule foreach git checkout main; \
git submodule foreach git pull origin main
.PHONY: all clean distclean serve update-init update-modules