summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: ea59ff699972d1720d23a63b37e3a5371979a3cf (plain)
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
91
92
93
94
95
96
97
## Copyright (c) 2009  Openismus GmbH  <http://www.openismus.com/>
##
## This file is part of glibmm.
##
## glibmm is free software: you can redistribute it and/or modify it
## under the terms of the GNU Lesser General Public License as published
## by the Free Software Foundation, either version 2.1 of the License,
## or (at your option) any later version.
##
## glibmm is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library.  If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS	= -I build ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal

if MAINTAINER_MODE
src_subdirs = glib/src gio/src
else
src_subdirs =
endif
if ENABLE_DOCUMENTATION
doc_subdirs = docs
else
doc_subdirs =
endif
SUBDIRS = tools $(src_subdirs) glib/glibmm gio/giomm tests examples $(doc_subdirs)

glibmm_includedir = $(includedir)/$(GLIBMM_MODULE_NAME)
glibmm_include_HEADERS = glib/glibmm.h
glibmm_libincludedir = $(libdir)/$(GLIBMM_MODULE_NAME)/include
nodist_glibmm_libinclude_HEADERS = glib/glibmmconfig.h

giomm_includedir = $(includedir)/$(GIOMM_MODULE_NAME)
giomm_include_HEADERS = gio/giomm.h
giomm_libincludedir = $(libdir)/$(GIOMM_MODULE_NAME)/include
nodist_giomm_libinclude_HEADERS = gio/giommconfig.h

pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = glib/$(GLIBMM_MODULE_NAME).pc gio/$(GIOMM_MODULE_NAME).pc

include $(srcdir)/MSVC_NMake/filelist.am

text_files = COPYING.tools README.SUN README.win32
msvc_files = $(addprefix MSVC_NMake/,$(msvc_nmake_data))

dist_noinst_DATA = $(text_files) $(msvc_files)
dist_noinst_SCRIPTS = autogen.sh

DISTCLEANFILES = $(filter %mmconfig.h,$(msvc_files))

# Distribute files needed when building glibmm with Meson.
EXTRA_DIST = \
  meson.build \
  meson_options.txt \
  MSVC_NMake/giomm/meson.build \
  MSVC_NMake/glibmm/meson.build \
  docs/reference/meson.build \
  examples/meson.build \
  glib/meson.build \
  glib/glibmmconfig.h.meson \
  glib/glibmm/meson.build \
  gio/meson.build \
  gio/giommconfig.h.meson \
  gio/giomm/meson.build \
  subprojects/glib.wrap \
  subprojects/sigc++-3.0.wrap \
  tests/meson.build \
  tools/meson.build \
  tools/build_scripts/compile-schemas.py \
  tools/build_scripts/dummy-header.py \
  tools/build_scripts/handle-built-files.py \
  tools/conf_tests/allows_static_inline_npos.cc \
  tools/conf_tests/can_assign_non_extern_c_functions_to_extern_c_cb.cc \
  tools/conf_tests/can_use_dynamic_cast_in_unused_template_wo_def.cc \
  tools/conf_tests/have_disambiguous_const_template_specializations.cc \
  tools/conf_tests/have_std_iterator_traits.cc \
  tools/conf_tests/have_sun_reverse_iterator.cc \
  tools/conf_tests/have_template_sequence_ctors.cc \
  tools/conf_tests/have_wide_stream.cc \
  tools/extra_defs_gen/meson.build \
  untracked/README

# Auto-generate the ChangeLog file from the git log on make dist
include $(top_srcdir)/build/dist-changelog.am

reformat:
if HAVE_CLANG_FORMAT
	$(CLANG_FORMAT) -i `find . -name "*.h"`
	$(CLANG_FORMAT) -i `find . -name "*.cc"`
else
	$(error clang-format was not not found during configure.)
endif