~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to build/generator/templates/makefile.ezt

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[define COPYRIGHT]
 
2
#
 
3
#
 
4
# Licensed to the Apache Software Foundation (ASF) under one
 
5
# or more contributor license agreements.  See the NOTICE file
 
6
# distributed with this work for additional information
 
7
# regarding copyright ownership.  The ASF licenses this file
 
8
# to you under the Apache License, Version 2.0 (the
 
9
# "License"); you may not use this file except in compliance
 
10
# with the License.  You may obtain a copy of the License at
 
11
#
 
12
#   http://www.apache.org/licenses/LICENSE-2.0
 
13
#
 
14
# Unless required by applicable law or agreed to in writing,
 
15
# software distributed under the License is distributed on an
 
16
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
17
# KIND, either express or implied.  See the License for the
 
18
# specific language governing permissions and limitations
 
19
# under the License.
 
20
#
 
21
#
 
22
[end]# DO NOT EDIT -- AUTOMATICALLY GENERATED
 
23
 
 
24
########################################
 
25
# Section 1: Global make variables
 
26
########################################
 
27
[for modules]
 
28
[modules.name]_DEPS =[for modules.deps] [modules.deps][end]
 
29
[modules.name]_LINK =[for modules.link] [modules.link][end]
 
30
[end]
 
31
BUILD_DIRS =[for build_dirs] [build_dirs][end]
 
32
 
 
33
BDB_TEST_DEPS =[for bdb_test_deps] [bdb_test_deps][end]
 
34
 
 
35
BDB_TEST_PROGRAMS =[for bdb_test_progs] [bdb_test_progs][end]
 
36
 
 
37
TEST_DEPS =[for test_deps] [test_deps][end]
 
38
 
 
39
TEST_PROGRAMS =[for test_progs] [test_progs][end]
 
40
 
 
41
MANPAGES =[for manpages] [manpages][end]
 
42
 
 
43
CLEAN_FILES =[for cfiles] [cfiles][end]
 
44
EXTRACLEAN_FILES =[for sql] [sql.header][end]
 
45
 
 
46
SWIG_INCLUDES = -I$(abs_builddir)/subversion \
 
47
  -I$(abs_srcdir)/subversion/include \
 
48
  -I$(abs_srcdir)/subversion/bindings/swig \
 
49
  -I$(abs_srcdir)/subversion/bindings/swig/include \
 
50
  -I$(abs_srcdir)/subversion/bindings/swig/proxy \
 
51
  -I$(abs_builddir)/subversion/bindings/swig/proxy \
 
52
  $(SVN_APR_INCLUDES) $(SVN_APRUTIL_INCLUDES)
 
53
[if-any release_mode]
 
54
RELEASE_MODE = 1
 
55
[end]
 
56
 
 
57
########################################
 
58
# Section 2: SWIG headers (wrappers and external runtimes)
 
59
########################################
 
60
[if-any release_mode]
 
61
[else]
 
62
[swig_rules][end]
 
63
########################################
 
64
# Section 3: SWIG autogen rules
 
65
########################################
 
66
[for swig_langs]
 
67
autogen-swig-[swig_langs.short]:[for swig_langs.deps] [swig_langs.deps][end]
 
68
autogen-swig: autogen-swig-[swig_langs.short]
 
69
[end]
 
70
 
 
71
 
 
72
########################################
 
73
# Section 4: Rules to build SWIG .c files from .i files
 
74
########################################
 
75
[for swig_c]
 
76
[swig_c.c_file]: .swig_checked [for swig_c.deps] [swig_c.deps][end]
 
77
        $(SWIG) $(SWIG_INCLUDES) [swig_c.opts] -o $@ $(top_srcdir)/[swig_c.source][end]
 
78
 
 
79
# This needs to be here, rather than in Makefile.in, else
 
80
# './autogen.sh --release' doesn't find it.
 
81
.swig_checked:
 
82
        @if [ "$(SWIG)" = "none" ]; then \
 
83
          echo "SWIG disabled at configure time" >&2; \
 
84
          exit 1; \
 
85
        fi
 
86
        @touch .swig_checked
 
87
 
 
88
 
 
89
########################################
 
90
# Section 5: Individual target build rules
 
91
########################################
 
92
[for target]
 
93
[target.varname]_PATH = [target.path][if-any target.install]
 
94
install-[target.install]: [target.install_deps][end]
 
95
[is target.type "java"][target.varname]_HEADERS = [for target.headers][if-index target.headers first][else] [end][target.headers][end]
 
96
[target.varname]_OBJECTS = [for target.objects][if-index target.objects first][else] [end][target.objects][end]
 
97
[target.varname]_DEPS = $([target.varname]_HEADERS) $([target.varname]_OBJECTS) [target.add_deps] [for target.deps][if-index target.deps first][else] [end][target.deps][end]
 
98
[target.name]: $([target.varname]_DEPS)
 
99
[if-any target.headers][target.varname]_CLASS_FILENAMES =[for target.header_class_filenames] [target.header_class_filenames][end]
 
100
[target.varname]_CLASSES =[for target.header_classes] [target.header_classes][end]
 
101
$([target.varname]_HEADERS): $([target.varname]_CLASS_FILENAMES)
 
102
        [target.link_cmd] -d [target.output_dir] -classpath [target.classes]:$([target.varname]_CLASSPATH) $([target.varname]_CLASSES)
 
103
[end][if-any target.sources][target.varname]_SRC =[for target.sources] [target.sources][end]
 
104
$([target.varname]_OBJECTS): $([target.varname]_SRC)
 
105
        [target.link_cmd] -d [target.output_dir] -classpath [target.classes]:$([target.varname]_CLASSPATH) $([target.varname]_SRC)
 
106
[if-any target.jar]
 
107
        $(JAR) cf [target.jar_path] -C [target.classes][for target.packages] [target.packages][end][end][end]
 
108
[else][is target.type "i18n"][target.varname]_DEPS = [target.add_deps][for target.objects] [target.objects][end][for target.deps] [target.deps][end]
 
109
[target.name]: $([target.varname]_DEPS)
 
110
[else][target.varname]_DEPS = [target.add_deps][for target.objects] [target.objects][end][for target.deps] [target.deps][end]
 
111
[target.varname]_OBJECTS =[for target.objnames] [target.objnames][end]
 
112
[target.filename]: $([target.varname]_DEPS)
 
113
        cd [target.path] && [target.link_cmd] $([target.varname]_LDFLAGS) -o [target.basename] [target.undefined_flag] $([target.varname]_OBJECTS)[for target.libs] [target.libs][end] $(LIBS)
 
114
[end][end][end]
 
115
 
 
116
########################################
 
117
# Section 6: Install-Group build targets
 
118
########################################
 
119
[for itargets]
 
120
[itargets.type]: [for itargets.outputs][if-index itargets.outputs first][else] [end][itargets.outputs][end]
 
121
[end]
 
122
 
 
123
########################################
 
124
# Section 7: Install-Group install targets
 
125
########################################
 
126
[for areas]
 
127
[is areas.type "apache-mod"]install-mods-shared:[for areas.files] [areas.files.fullname][end][for areas.files]
 
128
        cd [areas.files.dirname] ; $(MKDIR) "$(APACHE_LIBEXECDIR)" ; $(INSTALL_MOD_SHARED) -n [areas.files.name] [areas.files.filename][end]
 
129
[else]install-[areas.type]: [for areas.files][if-index areas.files first][else] [end][areas.files.fullname][end]
 
130
        $(MKDIR) $(DESTDIR)$([areas.varname]dir)[for areas.files][is areas.type "locale"]
 
131
        $(MKDIR) [areas.files.installdir]
 
132
        cd [areas.files.dirname] ; $(INSTALL_[areas.uppervar]) [areas.files.filename] [areas.files.installdir]/$(PACKAGE_NAME)[areas.files.objext][else]
 
133
        cd [areas.files.dirname] ; $(INSTALL_[areas.uppervar]) [areas.files.filename] $(DESTDIR)[areas.files.install_fname][end][end]
 
134
[if-any areas.extra_install]    $(INSTALL_EXTRA_[areas.uppervar])
 
135
[end][end][end]
 
136
 
 
137
########################################
 
138
# Section 8: The install-include rule
 
139
########################################
 
140
 
 
141
install-include:[for includes] [includes.file][end]
 
142
        $(MKDIR) $(DESTDIR)[includedir][for includes]
 
143
        $(INSTALL_INCLUDE) [includes.src] $(DESTDIR)[includes.dst][end]
 
144
 
 
145
########################################
 
146
# Section 9: Shortcut targets for manual builds of specific items
 
147
########################################
 
148
[for isources]
 
149
[isources.name]: [isources.filename][end]
 
150
 
 
151
########################################
 
152
# Section 10: Rules to build all other kinds of object-like files
 
153
########################################
 
154
[for deps]
 
155
[deps.name]:[for deps.deps] [deps.deps][end][if-any deps.cmd]
 
156
        [deps.cmd] [if-any deps.generated][else]$(canonicalized_srcdir)[end][deps.source][end]
 
157
[end]