Skip to content

Commit

Permalink
ARROW-2012: [GLib] Support "make distclean"
Browse files Browse the repository at this point in the history
Author: Kouhei Sutou <[email protected]>

Closes apache#1494 from kou/glib-support-distclean and squashes the following commits:

d660e0f [Kouhei Sutou] [GLib] Support "make distclean"
  • Loading branch information
kou committed Jan 21, 2018
1 parent 1bbaf7e commit ed27243
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 66 deletions.
2 changes: 1 addition & 1 deletion c_glib/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ AC_CONFIG_FILES([
arrow-gpu-glib/arrow-gpu-glib.pc
doc/Makefile
doc/reference/Makefile
doc/reference/xml/Makefile
doc/reference/entities.xml
example/Makefile
example/lua/Makefile
tool/Makefile
Expand Down
4 changes: 1 addition & 3 deletions c_glib/doc/reference/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
# specific language governing permissions and limitations
# under the License.

SUBDIRS = \
xml

DOC_MODULE = arrow-glib

DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
Expand Down Expand Up @@ -72,4 +69,5 @@ CLEANFILES += \
$(DOC_MODULE).types

EXTRA_DIST += \
entities.xml.in \
meson.build
4 changes: 2 additions & 2 deletions c_glib/doc/reference/arrow-glib-docs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
<!ENTITY % gtkdocentities SYSTEM "entities.xml">
%gtkdocentities;
]>
<book id="index">
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>&package_name; Reference Manual</title>
<releaseinfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
specific language governing permissions and limitations
under the License.
-->
<!ENTITY package "@package@">
<!ENTITY package_bugreport "@package_bugreport@">
<!ENTITY package_name "@package_name@">
<!ENTITY package_string "@package_string@">
<!ENTITY package_url "@package_url@">
<!ENTITY package_version "@package_version@">
<!ENTITY package "@PACKAGE@">
<!ENTITY package_bugreport "@PACKAGE_BUGREPORT@">
<!ENTITY package_name "@PACKAGE_NAME@">
<!ENTITY package_string "@PACKAGE_STRING@">
<!ENTITY package_url "@PACKAGE_URL@">
<!ENTITY package_version "@PACKAGE_VERSION@">
13 changes: 12 additions & 1 deletion c_glib/doc/reference/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
# specific language governing permissions and limitations
# under the License.

subdir('xml')
entities_conf = configuration_data()
entities_conf.set('PACKAGE', meson.project_name())
entities_conf.set('PACKAGE_BUGREPORT',
'https://issues.apache.org/jira/browse/ARROW')
entities_conf.set('PACKAGE_NAME', meson.project_name())
entities_conf.set('PACKAGE_STRING',
' '.join([meson.project_name(), version]))
entities_conf.set('PACKAGE_URL', 'https://arrow.apache.org/')
entities_conf.set('PACKAGE_VERSION', version)
configure_file(input: 'entities.xml.in',
output: 'entities.xml',
configuration: entities_conf)

private_headers = [
]
Expand Down
20 changes: 0 additions & 20 deletions c_glib/doc/reference/xml/Makefile.am

This file was deleted.

31 changes: 0 additions & 31 deletions c_glib/doc/reference/xml/meson.build

This file was deleted.

2 changes: 0 additions & 2 deletions dev/gen_apidocs/create_documents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ if [ -f Makefile ]; then
# Ensure updating to prevent auto re-configure
touch configure **/Makefile
make distclean
# Work around for 'make distclean' removes doc/reference/xml/
git checkout doc/reference/xml
fi
./autogen.sh
rm -rf build_docs
Expand Down

0 comments on commit ed27243

Please sign in to comment.