mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
77 lines
1.8 KiB
Makefile
77 lines
1.8 KiB
Makefile
########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
#########################################################################
|
|
|
|
SHELL = /bin/sh
|
|
|
|
#########################################################################
|
|
# High-level targets
|
|
#########################################################################
|
|
|
|
# Include only platform-independent builds in all
|
|
all: docs pip src
|
|
|
|
appbundle: docs
|
|
./pkg/mac/build.sh
|
|
|
|
appbundle-webkit: docs
|
|
PGADMIN4_USE_WEBKIT=1 ./pkg/mac/build.sh
|
|
|
|
check:
|
|
cd web && yarn run bundle && yarn run linter && yarn run karma start -- --single-run && python regression/runtests.py
|
|
|
|
check-python:
|
|
cd web && yarn run bundle && python regression/runtests.py --exclude feature_tests
|
|
|
|
check-feature:
|
|
cd web && yarn run bundle && python regression/runtests.py --pkg feature_tests
|
|
|
|
check-js:
|
|
cd web && yarn run linter && yarn run karma start -- --single-run
|
|
|
|
# Include all clean sub-targets in clean
|
|
clean: clean-appbundle clean-dist clean-docs clean-pip clean-src
|
|
|
|
clean-appbundle:
|
|
rm -rf mac-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
|
|
|
|
clean-pip:
|
|
rm -rf pip-build/
|
|
|
|
clean-src:
|
|
rm -rf src-build/
|
|
|
|
docs:
|
|
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx html
|
|
|
|
minimise:
|
|
python web/tools/minimise.py ./web
|
|
|
|
msg-compile:
|
|
cd web && pybabel compile -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
|
|
|
|
.PHONY: docs
|
|
|
|
pip: docs
|
|
./pkg/pip/build.sh
|
|
|
|
src:
|
|
./pkg/src/build.sh
|