pgadmin4/Makefile

95 lines
2.1 KiB
Makefile
Raw Normal View History

########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
2018-01-05 04:42:49 -06:00
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
#########################################################################
SHELL = /bin/sh
#########################################################################
# High-level targets
#########################################################################
2016-06-03 04:56:53 -05:00
# Include only platform-independent builds in all
all: docs pip src
2016-06-02 07:56:56 -05:00
appbundle: docs
./pkg/mac/build.sh
install-node:
cd web && yarn install
bundle:
cd web && yarn run bundle
bundle-dev:
cd web && yarn run bundle:dev
linter:
cd web && yarn run linter
check: install-node bundle linter
2018-03-08 03:34:06 -06:00
cd web && pycodestyle --config=.pycodestyle . && yarn run karma start --single-run && python regression/runtests.py
check-pep8:
cd web && pycodestyle --config=.pycodestyle .
check-python:
cd web && python regression/runtests.py --exclude feature_tests
check-feature: install-node bundle
cd web && python regression/runtests.py --pkg feature_tests
check-js: install-node linter
cd web && yarn run karma start --single-run
2017-03-25 15:54:40 -05:00
# Include all clean sub-targets in clean
clean: clean-appbundle clean-docker clean-dist clean-docs clean-pip clean-src
clean-appbundle:
rm -rf mac-build/
clean-docker:
rm -rf docker-build/
clean-dist:
rm -rf dist/
clean-docs:
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx clean
2016-06-02 07:56:56 -05:00
clean-pip:
rm -rf pip-build/
2016-06-02 07:56:56 -05:00
2016-06-03 04:56:53 -05:00
clean-src:
rm -rf src-build/
docker:
./pkg/docker/build.sh
docs:
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx html
2016-06-03 04:56:53 -05:00
2017-10-11 08:57:58 -05:00
docs-pdf:
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx latexpdf
msg-compile:
cd web && pybabel compile --statistics -d pgadmin/translations
msg-extract:
cd web && pybabel extract -F babel.cfg -o pgadmin/messages.pot pgadmin
msg-update:
cd web && pybabel update -i pgadmin/messages.pot -d pgadmin/translations
2016-06-02 07:56:56 -05:00
.PHONY: docs
pip: docs
./pkg/pip/build.sh
src:
./pkg/src/build.sh