2016-03-14 10:26:59 +00:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2018-01-05 10:42:49 +00:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2016-03-14 10:26:59 +00:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# High-level targets
|
|
|
|
#########################################################################
|
|
|
|
|
2016-06-03 09:56:53 +00:00
|
|
|
# Include only platform-independent builds in all
|
2016-06-15 16:09:05 +00:00
|
|
|
all: docs pip src
|
2016-03-14 10:26:59 +00:00
|
|
|
|
2016-06-02 12:56:56 +00:00
|
|
|
appbundle: docs
|
|
|
|
./pkg/mac/build.sh
|
|
|
|
|
2017-04-05 11:35:07 +00:00
|
|
|
appbundle-webkit: docs
|
|
|
|
PGADMIN4_USE_WEBKIT=1 ./pkg/mac/build.sh
|
|
|
|
|
2017-06-23 08:23:31 +00:00
|
|
|
install-node:
|
|
|
|
cd web && yarn install
|
|
|
|
|
2017-07-06 12:02:43 +00:00
|
|
|
bundle:
|
|
|
|
cd web && yarn run bundle
|
2017-06-14 13:11:51 +00:00
|
|
|
|
2017-09-13 08:47:01 +00:00
|
|
|
bundle-dev:
|
|
|
|
cd web && yarn run bundle:dev
|
|
|
|
|
2017-07-06 12:02:43 +00:00
|
|
|
linter:
|
|
|
|
cd web && yarn run linter
|
2017-06-14 13:11:51 +00:00
|
|
|
|
2017-07-06 12:02:43 +00:00
|
|
|
check: install-node bundle linter
|
|
|
|
cd web && yarn run karma start -- --single-run && python regression/runtests.py
|
2017-06-14 13:11:51 +00:00
|
|
|
|
2017-11-16 12:01:22 +00:00
|
|
|
check-python:
|
2017-07-06 12:02:43 +00:00
|
|
|
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 20:54:40 +00:00
|
|
|
|
2017-04-18 14:05:32 +00:00
|
|
|
# Include all clean sub-targets in clean
|
2017-09-21 15:49:37 +00:00
|
|
|
clean: clean-appbundle clean-docker clean-dist clean-docs clean-pip clean-src
|
2017-04-05 12:27:32 +00:00
|
|
|
|
2017-04-18 14:05:32 +00:00
|
|
|
clean-appbundle:
|
|
|
|
rm -rf mac-build/
|
2017-04-05 12:27:32 +00:00
|
|
|
|
2017-09-21 15:49:37 +00:00
|
|
|
clean-docker:
|
|
|
|
rm -rf docker-build/
|
|
|
|
|
2017-04-18 14:05:32 +00:00
|
|
|
clean-dist:
|
|
|
|
rm -rf dist/
|
2017-04-05 12:27:32 +00:00
|
|
|
|
2017-04-18 14:05:32 +00: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 12:56:56 +00:00
|
|
|
|
2016-03-14 10:26:59 +00:00
|
|
|
clean-pip:
|
2016-06-15 16:09:05 +00:00
|
|
|
rm -rf pip-build/
|
2016-06-02 12:56:56 +00:00
|
|
|
|
2016-06-03 09:56:53 +00:00
|
|
|
clean-src:
|
2016-06-15 16:09:05 +00:00
|
|
|
rm -rf src-build/
|
|
|
|
|
2017-09-21 15:49:37 +00:00
|
|
|
docker:
|
|
|
|
./pkg/docker/build.sh
|
|
|
|
|
2017-04-18 14:05:32 +00: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 09:56:53 +00:00
|
|
|
|
2017-10-11 13:57:58 +00:00
|
|
|
docs-pdf:
|
|
|
|
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx latexpdf
|
|
|
|
|
2017-04-18 14:05:32 +00:00
|
|
|
msg-compile:
|
2017-10-31 09:16:47 +00:00
|
|
|
cd web && pybabel compile --statistics -d pgadmin/translations
|
2017-04-18 14:05:32 +00: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 11:31:13 +00:00
|
|
|
|
2016-06-02 12:56:56 +00:00
|
|
|
.PHONY: docs
|
2017-04-18 14:05:32 +00:00
|
|
|
|
|
|
|
pip: docs
|
|
|
|
./pkg/pip/build.sh
|
|
|
|
|
|
|
|
src:
|
|
|
|
./pkg/src/build.sh
|