This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
/
Makefile.am
90 lines (81 loc) · 2.78 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
##############################################################################
# pgAdmin III - PostgreSQL Tools
#
# Copyright (C) 2002 - 2009, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# Makefile - Makefile for *nix systems
##############################################################################
AUTOMAKE_OPTIONS = foreign
SUBDIRS = xtra/png2c branding i18n plugins.d pgadmin xtra pkg
EXTRA_DIST = \
$(top_srcdir)/BUGS \
$(top_srcdir)/CHANGELOG \
$(top_srcdir)/DEVELOPERS \
$(top_srcdir)/INSTALL \
$(top_srcdir)/LICENSE \
$(top_srcdir)/README \
$(top_srcdir)/TODO \
$(top_srcdir)/bootstrap \
$(top_srcdir)/configure.ac.in \
$(top_srcdir)/languages.hwx \
$(top_srcdir)/languages.po \
$(top_srcdir)/pgadmin3.pot \
$(top_srcdir)/pgadmin3-release.pot \
$(top_srcdir)/pgAdmin3.rules \
$(top_srcdir)/pgAdmin3.sln \
$(top_srcdir)/stringextract \
$(top_srcdir)/stringmerge \
$(top_srcdir)/docs/Docs.vcproj \
$(top_srcdir)/docs/builddocs.bat \
$(top_srcdir)/docs/createConf.vbs \
$(top_srcdir)/docs/en_US/*.rst \
$(top_srcdir)/docs/en_US/conf.py.in \
$(top_srcdir)/docs/en_US/images/*.png
TMP_docs = \
$(top_srcdir)/docs/en_US/hints/*.html \
$(top_srcdir)/docs/cs_CZ/*.css \
$(top_srcdir)/docs/cs_CZ/hints/*.html \
$(top_srcdir)/docs/de_DE/*.css \
$(top_srcdir)/docs/de_DE/hints/*.html \
$(top_srcdir)/docs/es_ES/*.css \
$(top_srcdir)/docs/es_ES/hints/*.html \
$(top_srcdir)/docs/fi_FI/*.css \
$(top_srcdir)/docs/fi_FI/hints/*.html \
$(top_srcdir)/docs/fr_FR/*.css \
$(top_srcdir)/docs/fr_FR/hints/*.html \
$(top_srcdir)/docs/sl_SI/*.css \
$(top_srcdir)/docs/sl_SI/hints/*.html \
$(top_srcdir)/docs/zh_CN/*.css \
$(top_srcdir)/docs/zh_CN/hints/*.html \
$(top_srcdir)/docs/zh_TW/*.css \
$(top_srcdir)/docs/zh_TW/hints/*.html
if !APPBUNDLE
nobase_dist_pkgdata_DATA = $(TMP_docs)
help_cache = $(DESTDIR)/$(pkgdatadir)/docs/en_US/pgadmin3.hhp.cached
else
nobase_dist_data_DATA = $(TMP_docs)
help_cache = $(DESTDIR)/$(datadir)/docs/en_US/pgadmin3.hhp.cached
endif
# We need to ensure the help cache is world writeable
install-data-hook:
touch $(help_cache)
chmod 0666 $(help_cache)
# Perform astyle cleanup per rules:
# * -p - insert space around parenthesis
# * -b - bracket style
# * -S - indent switches
# * -t4 - intent with tabs, 4 of them
# * -k3 - align pointer or reference operators
# * -z2 - Unix style line endings
# Also add the -n to make it not save .orig files (we have git for that)
style:
astyle -n -p -b -S -t4 -k3 -z2 `find . -name "*.cpp" -o -name "*.h" | egrep -v "(wx-build|xrcDialogs|pgscript/test)"`
# Create HTML docs
docs:
if SPHINX_BUILD
cd $(top_srcdir)/docs/en_US && make -f Makefile.sphinx SPHINXBUILD=${SPHINX_BUILD} html
endif
clean-local:
rm -rf docs/en_US/_build
rm docs/en_US/conf.py