2016-03-14 05:26:59 -05:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2017-01-04 07:33:32 -06:00
|
|
|
# Copyright (C) 2013 - 2017, 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
|
2016-06-15 11:09:05 -05:00
|
|
|
all: docs pip src
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2016-06-03 04:56:53 -05:00
|
|
|
# Include all clean sub-targets in clean
|
|
|
|
clean: clean-dist clean-docs clean-pip clean-appbundle clean-src
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2016-06-15 11:09:05 -05:00
|
|
|
pip: docs
|
|
|
|
./pkg/pip/build.sh
|
2016-03-14 05:26:59 -05:00
|
|
|
|
2016-06-02 07:56:56 -05:00
|
|
|
appbundle: docs
|
|
|
|
./pkg/mac/build.sh
|
|
|
|
|
2017-04-05 06:35:07 -05:00
|
|
|
appbundle-webkit: docs
|
|
|
|
PGADMIN4_USE_WEBKIT=1 ./pkg/mac/build.sh
|
|
|
|
|
2016-06-15 11:09:05 -05:00
|
|
|
src:
|
|
|
|
./pkg/src/build.sh
|
|
|
|
|
2017-03-25 15:54:40 -05:00
|
|
|
minimise:
|
|
|
|
python web/tools/minimise.py ./web
|
|
|
|
|
2017-04-05 07:27: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
|
|
|
|
|
|
|
|
msg-compile:
|
|
|
|
cd web && pybabel compile -d pgadmin/translations
|
|
|
|
|
2016-06-02 07:56:56 -05:00
|
|
|
docs:
|
|
|
|
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx html
|
|
|
|
|
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
|
|
|
|
|
|
|
clean-appbundle:
|
2016-06-15 11:09:05 -05:00
|
|
|
rm -rf mac-build/
|
2016-06-03 04:56:53 -05:00
|
|
|
|
|
|
|
clean-src:
|
2016-06-15 11:09:05 -05:00
|
|
|
rm -rf src-build/
|
|
|
|
|
|
|
|
clean-docs:
|
|
|
|
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 $(MAKE) -C docs/en_US -f Makefile.sphinx clean
|
2016-06-03 04:56:53 -05:00
|
|
|
|
|
|
|
clean-dist:
|
2016-06-15 11:09:05 -05:00
|
|
|
rm -rf dist/
|
|
|
|
|
2017-02-16 05:31:13 -06:00
|
|
|
check:
|
|
|
|
python web/regression/runtests.py
|
|
|
|
|
2016-06-02 07:56:56 -05:00
|
|
|
.PHONY: docs
|