2016-03-14 05:26:59 -05:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2018-01-05 04:42:49 -06:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2016-03-14 05:26:59 -05:00
|
|
|
# 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
|
2018-03-22 08:47:26 -05:00
|
|
|
all: docs pip src runtime
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2016-06-02 07:56:56 -05:00
|
|
|
appbundle: docs
|
|
|
|
./pkg/mac/build.sh
|
|
|
|
|
2017-06-23 03:23:31 -05:00
|
|
|
install-node:
|
|
|
|
cd web && yarn install
|
|
|
|
|
2017-07-06 07:02:43 -05:00
|
|
|
bundle:
|
|
|
|
cd web && yarn run bundle
|
2017-06-14 08:11:51 -05:00
|
|
|
|
2017-09-13 03:47:01 -05:00
|
|
|
bundle-dev:
|
|
|
|
cd web && yarn run bundle:dev
|
|
|
|
|
2017-07-06 07:02:43 -05:00
|
|
|
linter:
|
|
|
|
cd web && yarn run linter
|
2017-06-14 08:11:51 -05:00
|
|
|
|
2017-07-06 07:02:43 -05:00
|
|
|
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
|
2017-06-14 08:11:51 -05:00
|
|
|
|
2018-01-29 06:45:32 -06:00
|
|
|
check-pep8:
|
2019-03-20 06:17:51 -05:00
|
|
|
pycodestyle --config=.pycodestyle docs/
|
|
|
|
pycodestyle --config=.pycodestyle pkg/
|
|
|
|
pycodestyle --config=.pycodestyle web/
|
|
|
|
pycodestyle --config=.pycodestyle tools/
|
2018-01-29 06:45:32 -06:00
|
|
|
|
2017-11-16 06:01:22 -06:00
|
|
|
check-python:
|
2017-07-06 07:02:43 -05:00
|
|
|
cd web && python regression/runtests.py --exclude feature_tests
|
|
|
|
|
2018-04-30 11:15:44 -05:00
|
|
|
check-feature: install-node bundle
|
2017-07-06 07:02:43 -05:00
|
|
|
cd web && python regression/runtests.py --pkg feature_tests
|
|
|
|
|
|
|
|
check-js: install-node linter
|
2018-01-22 05:29:07 -06:00
|
|
|
cd web && yarn run karma start --single-run
|
2017-03-25 15:54:40 -05:00
|
|
|
|
2018-03-22 06:19:42 -05:00
|
|
|
runtime-debug:
|
|
|
|
cd runtime && qmake CONFIG+=debug && make
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
cd runtime && qmake CONFIG+=release && make
|
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
# Include all clean sub-targets in clean
|
2018-04-10 05:15:57 -05:00
|
|
|
clean: clean-appbundle clean-docker clean-dist clean-docs clean-node clean-pip clean-src clean-runtime
|
2018-04-30 10:13:43 -05:00
|
|
|
rm -rf web/pgadmin/static/js/generated/*
|
|
|
|
rm -rf web/pgadmin/static/js/generated/.cache
|
|
|
|
rm -rf web/pgadmin/static/css/generated/*
|
|
|
|
rm -rf web/pgadmin/static/css/generated/.cache
|
2018-03-22 06:19:42 -05:00
|
|
|
|
|
|
|
clean-runtime:
|
2019-03-15 04:33:42 -05:00
|
|
|
if [ -f runtime/Makefile ]; then (cd runtime && make clean); fi;
|
|
|
|
rm -rf build-*
|
2017-04-05 07:27:32 -05:00
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
clean-appbundle:
|
|
|
|
rm -rf mac-build/
|
2017-04-05 07:27:32 -05:00
|
|
|
|
2017-09-21 10:49:37 -05:00
|
|
|
clean-docker:
|
|
|
|
rm -rf docker-build/
|
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
clean-dist:
|
|
|
|
rm -rf dist/
|
2017-04-05 07:27:32 -05:00
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
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
|
|
|
|
2018-04-10 05:15:57 -05:00
|
|
|
clean-node:
|
|
|
|
rm -rf web/node-modules/
|
|
|
|
|
2016-03-14 05:26:59 -05:00
|
|
|
clean-pip:
|
2016-06-15 11:09:05 -05:00
|
|
|
rm -rf pip-build/
|
2016-06-02 07:56:56 -05:00
|
|
|
|
2016-06-03 04:56:53 -05:00
|
|
|
clean-src:
|
2016-06-15 11:09:05 -05:00
|
|
|
rm -rf src-build/
|
|
|
|
|
2017-09-21 10:49:37 -05:00
|
|
|
docker:
|
|
|
|
./pkg/docker/build.sh
|
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
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
|
|
|
|
|
2019-03-12 09:33:46 -05:00
|
|
|
docs-epub:
|
|
|
|
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx epub
|
|
|
|
|
2018-07-12 04:00:40 -05:00
|
|
|
messages: msg-extract msg-update msg-compile
|
|
|
|
|
2017-04-18 09:05:32 -05:00
|
|
|
msg-compile:
|
2017-10-31 04:16:47 -05:00
|
|
|
cd web && pybabel compile --statistics -d pgadmin/translations
|
2017-04-18 09:05:32 -05:00
|
|
|
|
|
|
|
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
|
2017-02-16 05:31:13 -06:00
|
|
|
|
2016-06-02 07:56:56 -05:00
|
|
|
.PHONY: docs
|
2017-04-18 09:05:32 -05:00
|
|
|
|
|
|
|
pip: docs
|
|
|
|
./pkg/pip/build.sh
|
|
|
|
|
|
|
|
src:
|
|
|
|
./pkg/src/build.sh
|