summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 8ddffdb7cda17b5de8812d4a8f20cde8690a46cc (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
## Copyright (c) 2009  Openismus GmbH  <http://www.openismus.com/>
##
## This file is part of mm-common.
##
## mm-common is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation, either version 2 of the License,
## or (at your option) any later version.
##
## mm-common 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 General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with mm-common.  If not, see <http://www.gnu.org/licenses/>.

# Pick up aclocal flags from the environment.
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

bin_SCRIPTS = util/mm-common-prepare
man1_MANS = util/mm-common-prepare.1

build_supportdir = $(pkgdatadir)/build
dist_build_support_DATA =		\
	build/compile-binding.am	\
	build/dist-changelog.am		\
	build/doc-reference.am		\
	build/generate-binding.am

aclocal_macrodir = $(datadir)/aclocal
aclocal_macro_DATA = macros/mm-common.m4
dist_aclocal_macro_DATA =		\
	macros/mm-dietlib.m4		\
	macros/mm-doc.m4		\
	macros/mm-module.m4		\
	macros/mm-pkg.m4		\
	macros/mm-warnings.m4

doctooldir = $(pkgdatadir)/doctool
dist_doctool_DATA =			\
	util/doc-install.pl		\
	util/doc-postprocess.pl		\
	util/doxygen.css		\
	util/tagfile-to-devhelp2.xsl

doctagsdir = $(pkgdatadir)/doctags
dist_doctags_DATA = doctags/libstdc++.tag

shared_pkgconfigdir = $(datadir)/pkgconfig
nodist_shared_pkgconfig_DATA = doctags/mm-common-libstdc++.pc
noinst_DATA = doctags/mm-common-libstdc++-uninstalled.pc

nobase_dist_doc_SCRIPTS = skeletonmm/autogen.sh
nobase_dist_doc_DATA =							\
	README								\
	skeletonmm/.gitignore						\
	skeletonmm/AUTHORS						\
	skeletonmm/COPYING						\
	skeletonmm/ChangeLog						\
	skeletonmm/Makefile.am						\
	skeletonmm/README						\
	skeletonmm/configure.ac						\
	skeletonmm/skeletonmm.doap					\
	skeletonmm/codegen/Makefile.am					\
	skeletonmm/codegen/extradefs/generate_extra_defs_skeleton.cc	\
	skeletonmm/codegen/m4/convert.m4				\
	skeletonmm/codegen/m4/convert_skeleton.m4			\
	skeletonmm/codegen/m4/filelist.am				\
	skeletonmm/doc/Makefile.am					\
	skeletonmm/doc/reference/.gitignore				\
	skeletonmm/doc/reference/Doxyfile.in				\
	skeletonmm/skeleton/.gitignore					\
	skeletonmm/skeleton/skeletonmm-uninstalled.pc.in		\
	skeletonmm/skeleton/skeletonmm.pc.in				\
	skeletonmm/skeleton/skeletonmmconfig.h.in			\
	skeletonmm/skeleton/skeletonmm/Makefile.am			\
	skeletonmm/skeleton/skeletonmm/filelist.am			\
	skeletonmm/skeleton/skeletonmm/wrap_init.h			\
	skeletonmm/skeleton/skeletonmm/private/.gitignore		\
	skeletonmm/skeleton/src/Makefile.am				\
	skeletonmm/skeleton/src/filelist.am				\
	skeletonmm/skeleton/src/skeleton.ccg				\
	skeletonmm/skeleton/src/skeleton.defs				\
	skeletonmm/skeleton/src/skeleton.hg				\
	skeletonmm/skeleton/src/skeleton_docs.xml			\
	skeletonmm/skeleton/src/skeleton_docs_override.xml		\
	skeletonmm/skeleton/src/skeleton_enum.defs			\
	skeletonmm/skeleton/src/skeleton_extra.defs			\
	skeletonmm/skeleton/src/skeleton_method.defs

dist_noinst_DATA = util/mm-common-prepare.1.in
dist_noinst_SCRIPTS = autogen.sh

CLEANFILES = $(man1_MANS)
MAINTAINERCLEANFILES = $(dist_doctags_DATA)

# Remote location of the GNU libstdc++ Doxygen tag file.
libstdcxx_tag_url = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag

# Commands for downloading a target from a remote location, taking care
# not to download a file again if its time stamp has not changed.
download_curl = $(CURL) --compressed --connect-timeout 300 -g -L -m 3600 -R --retry 5 \
		$(if $(wildcard $@),-z '$@') -o '$@'
download_wget = $(WGET) -N -nd -T 300 -t 5 -P '$(dir $@)'

subst_manpage = sed 's|[@]PACKAGE_STRING[@]|$(PACKAGE_STRING)|g;s|[@]docdir[@]|$(docdir)|g'

# If maintainer mode is enabled, always check the remote locations
# of the tag files for updates when building the default target.
if MAINTAINER_MODE
check_updates = $(if $(filter all%,$(or $(MAKECMDGOALS),all)),$(dist_doctags_DATA))
else
check_updates =
endif

.PHONY: $(check_updates)

# Avoid shipping partially downloaded files.
.DELETE_ON_ERROR:

# Download the libstdc++ tag file from the GCC website.
doctags/libstdc++.tag:
	$(if $(CURL),$(download_curl) '$(libstdcxx_tag_url)',$(if\
	     $(WGET),$(download_wget) '$(libstdcxx_tag_url)',test -f '$@'))

util/mm-common-prepare.1: $(srcdir)/util/mm-common-prepare.1.in Makefile
	$(subst_manpage) $(srcdir)/util/mm-common-prepare.1.in >$@

include $(top_srcdir)/build/dist-changelog.am