-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (44 loc) · 1.69 KB
/
Makefile
File metadata and controls
54 lines (44 loc) · 1.69 KB
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
54
INTERNAL = Makefile.internal
ARGS = with_llvm=no
ifdef DEBUG
ARGS+=DEBUG=1
endif
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
PAGER ?= less
else
PAGER ?= pager
endif
default:
$(MAKE) -f $(INTERNAL) $(ARGS)
%:
$(MAKE) -f $(INTERNAL) $@ $(ARGS)
test:
bash -c "set -o pipefail && make installcheck 2>&1 | tee test.log" || $(PAGER) `grep regression.diffs test.log | perl -pe 's/.*?"//;s/".*//'`
docs: sql/provsql.sql
cd doc/source && make html
website: docs
# Copy branding assets into website source
cp -r branding/fonts/. website/assets/fonts
cp branding/logo.png website/assets/images/logo.png
cp branding/favicon.ico website/assets/images/favicon.ico
cp branding/favicon.ico website/favicon.ico
# Generate SCSS partial for fonts (adjust path from fonts/ to ../fonts/)
sed "s|url('fonts/|url('../fonts/|g" branding/fonts-face.css > website/assets/css/_fonts-face.scss
# Copy generated docs into Jekyll source tree so jekyll serve also sees them
mkdir -p website/docs website/doxygen-sql/html website/doxygen-c/html
cp -r doc/source/_build/html/. website/docs
cp -r doc/doxygen-sql/html/. website/doxygen-sql/html
cp -r doc/doxygen-c/html/. website/doxygen-c/html
cd website && bundle exec jekyll build
deploy: website
# -c hashes content so Jekyll's fresh mtimes don't trigger spurious transfers
rsync -avzcP website/_site/ provsql:/var/www/provsql/
.PHONY: default test docs website deploy
EXTVERSION = $(shell grep default_version provsql.common.control | \
sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
docker-build:
make clean
docker build -f docker/Dockerfile \
--build-arg PROVSQL_VERSION=$(EXTVERSION) \
-t provsql:$(EXTVERSION) .