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) .