monotone

monotone Mtn Source Tree

Root/Makefile.am

1AUTOMAKE_OPTIONS=subdir-objects 1.7.1
2ACLOCAL_AMFLAGS = -I m4
3
4MOST_SOURCES =\
5 app_state.cc app_state.hh\
6 commands.cc commands.hh\
7 diff_patch.cc diff_patch.hh\
8 lua.cc lua.hh\
9 transforms.cc transforms.hh\
10 update.cc update.hh\
11 work.cc work.hh\
12 cert.cc cert.hh\
13 database.cc database.hh\
14 key_store.cc key_store.hh\
15 file_io.cc file_io.hh\
16 keys.cc keys.hh\
17 manifest.cc manifest.hh\
18 packet.cc packet.hh\
19 sanity.cc sanity.hh\
20 vocab.cc vocab.hh vocab_terms.hh numeric_vocab.hh\
21 rcs_file.cc rcs_file.hh\
22 xdelta.cc xdelta.hh\
23 ui.cc ui.hh\
24 schema_migration.cc schema_migration.hh\
25 constants.cc constants.hh\
26 netsync.cc netsync.hh\
27 netcmd.cc netcmd.hh\
28 merkle_tree.cc merkle_tree.hh\
29 basic_io.cc basic_io.hh\
30 mkstemp.cc mkstemp.hh\
31 lcs.cc lcs.hh\
32 rcs_import.cc rcs_import.hh\
33 revision.cc revision.hh\
34 change_set.cc change_set.hh\
35 mt_version.cc mt_version.hh\
36 automate.cc automate.hh\
37 database_check.cc database_check.hh\
38 epoch.cc epoch.hh\
39 inodeprint.cc inodeprint.hh\
40 selectors.cc selectors.hh\
41 annotate.cc annotate.hh\
42 restrictions.cc restrictions.hh\
43 hmac.cc hmac.hh \
44 globish.cc globish.hh \
45 string_queue.cc string_queue.hh \
46 paths.cc paths.hh \
47 piece_table.cc netxx_pipe.cc\
48 cleanup.hh unit_tests.hh interner.hh\
49 cycle_detector.hh randomfile.hh adler32.hh quick_alloc.hh\
50 netio.hh smap.hh gettext.h\
51 package_revision.c package_revision.h\
52 cvs_client.cc cvs_sync.cc\
53 package_full_revision.c package_full_revision.h options.hh \
54 i18n.h hash_map.hh
55
56NETXX_SOURCES =\
57netxx/accept.cxx netxx/accept.h netxx/address.cxx\
58netxx/common.h netxx/compat.h netxx/datagram.cxx\
59netxx/datagramserver.cxx netxx/osutil.cxx netxx/osutil.h\
60netxx/peer.cxx netxx/probe.cxx netxx/probe_impl.h\
61netxx/probe_select.cxx netxx/recvfrom.cxx netxx/recvfrom.h\
62netxx/resolve.h netxx/serverbase.cxx netxx/serverbase.h\
63 netxx/sockaddr.cxx netxx/sockaddr.h netxx/socket.cxx\
64netxx/socket.h netxx/sockopt.cxx netxx/stream.cxx\
65netxx/streambase.cxx netxx/streamserver.cxx\
66netxx/address.h netxx/datagram.h netxx/datagramserver.h\
67netxx/netbuf.h netxx/netxx.h netxx/peer.h netxx/probe.h\
68netxx/probeinfo.h netxx/sockopt.h netxx/stream.h netxx/streambase.h\
69netxx/streamserver.h netxx/timeout.h netxx/types.h
70
71BOTAN_SOURCES = \
72 botan/aes.cpp botan/aes_tab.cpp botan/algolist.cpp\
73 botan/allocate.cpp botan/arc4.cpp botan/asn1_alg.cpp\
74 botan/asn1_alt.cpp botan/asn1_att.cpp botan/asn1_dn.cpp\
75 botan/asn1_ext.cpp botan/asn1_ku.cpp botan/asn1_oid.cpp\
76 botan/asn1_str.cpp botan/asn1_tm.cpp botan/barrett.cpp\
77 botan/base.cpp botan/base64.cpp botan/basefilt.cpp\
78 botan/ber_code.cpp botan/ber_dec.cpp botan/big_base.cpp\
79 botan/big_code.cpp botan/big_io.cpp botan/big_ops2.cpp\
80 botan/big_ops3.cpp botan/blinding.cpp botan/buf_es.cpp\
81 botan/buf_filt.cpp botan/cbc.cpp botan/certstore.cpp\
82 botan/cfb.cpp botan/charset.cpp botan/conf.cpp botan/crc32.cpp\
83 botan/crl_ent.cpp botan/ctr.cpp botan/cts.cpp\
84 botan/data_snk.cpp botan/data_src.cpp \
85 botan/def_ops.cpp botan/defalloc.cpp botan/der_code.cpp\
86 botan/der_enc.cpp botan/divide.cpp botan/dl_algo.cpp\
87 botan/dl_group.cpp botan/dl_param.cpp\
88 botan/dl_cache.cpp \
89 botan/dlies.cpp botan/eax.cpp botan/ecb.cpp botan/eme1.cpp\
90 botan/eme_pkcs.cpp botan/emsa1.cpp botan/emsa2.cpp\
91 botan/emsa3.cpp botan/emsa4.cpp botan/emsa_raw.cpp\
92 botan/eng_base.cpp botan/engine.cpp botan/es_file.cpp\
93 botan/exceptn.cpp botan/filter.cpp botan/filters.cpp\
94 botan/fips140.cpp botan/fused.cpp\
95 botan/get_algo.cpp botan/get_enc.cpp botan/get_pbe.cpp\
96 botan/gzip.cpp botan/hash_id.cpp botan/hex.cpp botan/hmac.cpp\
97 botan/if_algo.cpp botan/inifile.cpp botan/init.cpp\
98 botan/kdf.cpp botan/keypair.cpp botan/look_pk.cpp\
99 botan/lookup.cpp botan/make_prm.cpp botan/mdx_hash.cpp\
100 botan/md5.cpp\
101 botan/mem_pool.cpp botan/mgf1.cpp botan/mlock.cpp\
102 botan/mod_exp.cpp botan/mode_pad.cpp botan/modebase.cpp\
103 botan/mp_comba.cpp botan/mp_core.cpp botan/mp_fkmul.cpp\
104 botan/mp_misc.cpp botan/mp_mul.cpp botan/mp_shift.cpp\
105 botan/mp_smul.cpp botan/mutex.cpp botan/numthry.cpp\
106 botan/ofb.cpp botan/oids.cpp botan/parse.cpp botan/pbes1.cpp\
107 botan/pbes2.cpp botan/pem.cpp botan/pipe.cpp botan/pipe_io.cpp\
108 botan/pipe_rw.cpp botan/pk_algs.cpp botan/pk_core.cpp\
109 botan/pk_filts.cpp botan/pk_keys.cpp botan/pk_util.cpp\
110 botan/pkcs10.cpp botan/pkcs8.cpp botan/policy.cpp\
111 botan/pow_mod.cpp \
112 botan/prf_x942.cpp botan/primes.cpp botan/pubkey.cpp\
113 botan/randpool.cpp botan/reducer.cpp botan/rng.cpp\
114 botan/rsa.cpp botan/s2k.cpp botan/secqueue.cpp\
115 botan/sha160.cpp botan/symkey.cpp botan/timers.cpp\
116 botan/ui.cpp botan/util.cpp botan/x509_ca.cpp\
117 botan/x509_crl.cpp botan/x509_key.cpp botan/x509_obj.cpp\
118 botan/x509cert.cpp botan/x509find.cpp botan/x509opt.cpp\
119 botan/des.cpp botan/des_tab.cpp botan/pkcs5.cpp \
120 botan/x509self.cpp botan/x509stor.cpp \
121 botan/def_alg.cpp botan/def_mode.cpp botan/sha256.cpp \
122 \
123 botan/aes.h botan/botan.h botan/def_eng.h botan/es_win32.h\
124 botan/lookup.h botan/randpool.h botan/version.h\
125 botan/algolist.h botan/buf_es.h botan/der_enc.h\
126 botan/exceptn.h botan/mdx_hash.h botan/par_hash.h\
127 botan/reducer.h botan/x509_ca.h botan/allocate.h\
128 botan/buf_filt.h botan/dh.h botan/filter.h botan/mem_ops.h\
129 botan/pbe.h botan/rng.h botan/x509cert.h botan/arc4.h\
130 botan/cbc.h botan/dl_algo.h botan/filters.h botan/mem_pool.h\
131 botan/pbe_pkcs.h botan/rsa.h botan/x509_crl.h botan/asn1.h\
132 botan/certstor.h botan/dlies.h botan/fips140.h botan/mgf1.h\
133 botan/pem.h botan/s2k.h botan/x509_key.h botan/asn1_obj.h\
134 botan/cfb.h botan/dl_param.h botan/modebase.h\
135 botan/pipe.h botan/x509_obj.h\
136 botan/asn1_oid.h botan/conf.h botan/eax.h botan/gzip.h\
137 botan/mode_pad.h botan/pk_algs.h botan/secmem.h\
138 botan/x509self.h botan/barrett.h botan/config.h botan/ecb.h\
139 botan/hex.h botan/mod_exp.h botan/pk_core.h botan/secqueue.h\
140 botan/x509stor.h botan/base64.h botan/crc32.h botan/eme.h\
141 botan/hmac.h botan/mp_core.h botan/pkcs10.h botan/sha160.h\
142 botan/crl_ent.h botan/emsa.h\
143 botan/if_algo.h botan/mp_madd.h botan/pkcs8.h botan/socket.h\
144 botan/x919_mac.h botan/basefilt.h botan/ctr.h botan/engine.h\
145 botan/init.h botan/mp_types.h botan/pk_filts.h botan/symkey.h\
146 botan/base.h botan/cts.h botan/enums.h botan/kdf.h\
147 botan/mutex.h botan/pk_keys.h botan/timers.h botan/ber_dec.h\
148 botan/data_snk.h botan/es_capi.h botan/keypair.h\
149 botan/numthry.h botan/pk_ops.h botan/types.h botan/bigint.h\
150 botan/data_src.h botan/es_egd.h botan/look_add.h botan/ofb.h\
151 botan/pk_util.h botan/ui.h botan/blinding.h botan/defalloc.h\
152 botan/es_file.h botan/look_pk.h botan/oids.h botan/pubkey.h\
153 botan/util.h botan/charset.h botan/hash_id.h \
154 botan/des.h botan/pkcs5.h\
155botan/x931_rng.cpp botan/x931_rng.h botan/sha256.h
156
157
158BOOST_SANDBOX_SOURCES = \
159 boost/circular_buffer_adaptor.hpp \
160boost/circular_buffer_base.hpp \
161boost/circular_buffer_fwd.hpp \
162boost/circular_buffer.hpp
163
164SQLITE_SOURCES = \
165 sqlite/alter.c sqlite/attach.c sqlite/auth.c sqlite/btree.c \
166 sqlite/build.c sqlite/date.c sqlite/delete.c sqlite/expr.c sqlite/func.c \
167 sqlite/hash.c sqlite/insert.c \
168 sqlite/legacy.c sqlite/main.c sqlite/opcodes.c \
169 sqlite/os_unix.c sqlite/os_win.c \
170 sqlite/pager.c sqlite/parse.c sqlite/pragma.c sqlite/printf.c \
171 sqlite/random.c sqlite/select.c sqlite/table.c sqlite/tokenize.c \
172 sqlite/trigger.c sqlite/update.c sqlite/utf.c \
173 sqlite/util.c sqlite/vacuum.c \
174 sqlite/vdbe.c sqlite/vdbeapi.c sqlite/vdbeaux.c \
175 sqlite/vdbemem.c sqlite/where.c \
176sqlite/prepare.c sqlite/callback.c \
177sqlite/analyze.c sqlite/vdbefifo.c \
178sqlite/complete.c \
179\
180 sqlite/btree.h sqlite/config.h sqlite/hash.h sqlite/opcodes.h sqlite/os.h \
181 sqlite/os_common.h sqlite/os_unix.h sqlite/os_win.h \
182 sqlite/parse.h sqlite/sqlite3.h sqlite/sqliteInt.h sqlite/vdbe.h sqlite/vdbeInt.h \
183sqlite/pager.h
184
185LUA_SOURCES = \
186lua/lapi.c lua/lapi.h lua/lauxlib.c lua/lauxlib.h lua/lbaselib.c \
187lua/lcode.c lua/lcode.h lua/ldblib.c lua/ldebug.c lua/ldebug.h lua/ldo.c \
188lua/ldo.h lua/ldump.c lua/lfunc.c lua/lfunc.h lua/lgc.c lua/lgc.h \
189lua/liolib.c lua/llex.c lua/llex.h lua/llimits.h lua/lmathlib.c lua/lmem.c \
190lua/lmem.h lua/loadlib.c lua/lobject.c lua/lobject.h lua/lopcodes.c \
191lua/lopcodes.h lua/lparser.c lua/lparser.h lua/lstate.c lua/lstate.h \
192lua/lstring.c lua/lstring.h lua/lstrlib.c lua/ltable.c lua/ltable.h \
193lua/ltablib.c lua/ltests.c lua/ltm.c lua/ltm.h lua/lua.h lua/lualib.h \
194lua/lundump.c lua/lundump.h lua/lvm.c lua/lvm.h lua/lzio.c lua/lzio.h
195
196IDNA_SOURCES = \
197idna/gunibreak.h idna/gunidecomp.h idna/idna.h idna/nfkc.c\
198idna/punycode.c idna/rfc3454.c idna/stringprep.h idna/version.c \
199idna/gunicomp.h idna/idna.c idna/idn-int.h idna/profiles.c\
200idna/punycode.h idna/stringprep.c idna/toutf8.c
201
202POPT_SOURCES = \
203popt/findme.c popt/poptconfig.c popt/poptint.h \
204popt/findme.h popt/popt.h popt/poptparse.c \
205popt/popt.c popt/popthelp.c popt/system.h
206
207UNIX_PLATFORM_SOURCES = \
208unix/read_password.cc unix/get_system_flavour.cc unix/process.cc unix/terminal.cc \
209unix/inodeprint.cc unix/fs.cc
210
211WIN32_PLATFORM_SOURCES = \
212win32/read_password.cc win32/get_system_flavour.cc win32/process.cc win32/terminal.cc \
213win32/inodeprint.cc win32/fs.cc win32/wcwidth.c
214
215# primaries
216
217bin_PROGRAMS = monotone
218check_PROGRAMS = unit_tests
219noinst_PROGRAMS = txt2c
220
221monotone_SOURCES = $(MOST_SOURCES) monotone.cc main.cc
222unit_tests_SOURCES = $(MOST_SOURCES) unit_tests.cc crypto_tests.cc
223
224txt2c_SOURCES = txt2c.cc
225
226noinst_LIBRARIES = libplatform.a lib3rdparty.a
227libplatform_a_SOURCES = platform.hh
228lib3rdparty_a_SOURCES = $(BOOST_SANDBOX_SOURCES) \
229$(BOTAN_SOURCES) \
230$(IDNA_SOURCES) \
231$(POPT_SOURCES) \
232$(NETXX_SOURCES) \
233$(LUA_SOURCES) \
234$(SQLITE_SOURCES)
235
236# flags
237
238if BUILD_PCH
239
240PCH_SOURCE = $(srcdir)/pch.hh
241# the .gch file only will be seen if it's in the same dir as the .hh file,
242# so need to copy it for separate build directories
243PCH_BUILD = pch-build.hh
244PCH_FLAGS = -Winvalid-pch -include $(PCH_BUILD)
245PCH_FILE = $(PCH_BUILD).gch
246sinclude $(PCH_FILE).dep
247
248*.o *.lo *.obj: $(PCH_FILE)
249
250$(PCH_BUILD): $(PCH_SOURCE)
251cp $(PCH_SOURCE) $(PCH_BUILD)
252
253$(PCH_FILE): $(PCH_BUILD)
254$(MAKE) PCH_FLAGS= pch-file
255
256pch-file:
257$(CXXCOMPILE) -x c++-header $(PCH_BUILD) -o $(PCH_FILE) \
258 -MT $(PCH_FILE) -MD -MP -MF "./$(PCH_FILE).Tdep" \
259 && mv "./$(PCH_FILE).Tdep" "./$(PCH_FILE).dep" \
260 || rm "./$(PCH_FILE).Tdep"
261endif
262
263SUFFIXES = .gch
264
265AM_CPPFLAGS =
266AM_CFLAGS = $(AM_CPPFLAGS) -DTEMP_STORE=1 -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -DSQLITE_OMIT_CURSOR $(SQLITE_CPPFLAGS)
267AM_CXXFLAGS = $(AM_CPPFLAGS) -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS
268AM_LDFLAGS =
269
270lib3rdparty_a_CPPFLAGS =
271lib3rdparty_a_CFLAGS = $(AM_CFLAGS) $(LIB3RDPARTY_CFLAGS)
272lib3rdparty_a_CXXFLAGS = $(AM_CXXFLAGS) $(LIB3RDPARTY_CXXFLAGS)
273
274monotone_LDFLAGS =
275monotone_CPPFLAGS = -I$(top_srcdir)/lua -I$(top_srcdir)/sqlite
276monotone_CFLAGS = $(AM_CFLAGS) $(MONOTONE_CFLAGS)
277monotone_CXXFLAGS = $(AM_CXXFLAGS) $(PCH_FLAGS) $(MONOTONE_CXXFLAGS)
278
279unit_tests_LDFLAGS =
280unit_tests_CPPFLAGS = -DBUILD_UNIT_TESTS -I$(top_srcdir)/lua -I$(top_srcdir)/sqlite
281unit_tests_CXXFLAGS = $(AM_CXXFLAGS) $(PCH_FLAGS)
282
283# conditionals from configury
284
285if STATIC_BOOST
286 BOOSTLIBS = @BOOST_LIBDIR@/libboost_filesystem$(BOOST_SUFFIX).a \
287 @BOOST_LIBDIR@/libboost_date_time$(BOOST_SUFFIX).a \
288 @BOOST_LIBDIR@/libboost_regex$(BOOST_SUFFIX).a
289 monotone_LDADD = lib3rdparty.a $(BOOSTLIBS)
290 unit_tests_LDADD = lib3rdparty.a $(BOOSTLIBS) \
291 @BOOST_LIBDIR@/libboost_unit_test_framework$(BOOST_SUFFIX).a
292else
293 monotone_LDADD = lib3rdparty.a
294 unit_tests_LDADD = lib3rdparty.a -lboost_unit_test_framework$(BOOST_SUFFIX)
295endif
296
297monotone_LDADD += libplatform.a $(LIBICONV) $(LIBINTL)
298unit_tests_LDADD += libplatform.a $(LIBICONV) $(LIBINTL)
299
300if WIN32_PLATFORM
301 libplatform_a_SOURCES += $(WIN32_PLATFORM_SOURCES)
302 monotone_LDADD += -lshfolder -lws2_32 -lintl -liconv -liphlpapi
303 unit_tests_LDADD += -lshfolder -lws2_32 -lintl -liconv -liphlpapi
304 lib3rdparty_a_CPPFLAGS += -DWIN32 -DBOTAN_EXT_ENTROPY_SRC_CAPI -DBOTAN_EXT_ENTROPY_SRC_WIN32
305 lib3rdparty_a_SOURCES += botan/es_capi.cpp botan/es_win32.cpp
306else
307 libplatform_a_SOURCES += $(UNIX_PLATFORM_SOURCES)
308endif
309
310if MISSING_INET_PTON
311 lib3rdparty_a_SOURCES += netxx/inet_pton.cxx netxx/inet_pton.h
312 lib3rdparty_a_CPPFLAGS += -DNETXX_NO_PTON
313endif
314
315if MISSING_INET_NTOP
316 lib3rdparty_a_SOURCES += netxx/inet_ntop.cxx netxx/inet_ntop.h
317 lib3rdparty_a_CPPFLAGS += -DNETXX_NO_NTOP
318endif
319
320if MISSING_GETADDRINFO
321 lib3rdparty_a_SOURCES += netxx/resolve_gethostbyname.cxx netxx/resolve_getservbyname.cxx
322else
323 lib3rdparty_a_SOURCES += netxx/resolve_getaddrinfo.cxx
324endif
325
326if MISSING_INET6
327 lib3rdparty_a_CPPFLAGS += -DNETXX_NO_INET6
328endif
329
330# i18n support
331
332SUBDIRS = po
333datadir = @datadir@
334localedir = $(datadir)/locale
335DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
336
337# extra files
338
339PDF_FIGURES= figures/branch-heads.pdf figures/cert.pdf\
340figures/difference-between-versions.pdf\
341figures/file-id-manifest-id.pdf figures/fork.pdf\
342figures/general-workflow.pdf figures/linear-history.pdf\
343figures/local-workflow.pdf figures/manifest.pdf figures/merge.pdf\
344figures/network-workflow.pdf figures/parent-child-hashes.pdf\
345figures/parent-child-names-hashes.pdf figures/parent-child.pdf\
346figures/revision-chaining.pdf figures/revision.pdf\
347figures/statement.pdf figures/three-versions.pdf\
348figures/two-branches.pdf
349
350PNG_FIGURES=$(addprefix $(top_builddir)/figures/,$(notdir $(PDF_FIGURES:.pdf=.png)))
351EPS_FIGURES=$(addprefix $(top_builddir)/figures/,$(notdir $(PDF_FIGURES:.pdf=.eps)))
352
353man1_MANS = monotone.1
354info_TEXINFOS = monotone.texi
355EXTRA_DIST = $(man1_MANS) \
356 $(PDF_FIGURES) \
357 $(PNG_FIGURES) \
358 INSTALL \
359 README.changesets \
360 UPGRADE \
361 monotone.spec \
362 monotone.html \
363 texinfo.css \
364 schema.sql views.sql \
365 std_hooks.lua test_hooks.lua \
366 testsuite.at \
367 $(wildcard $(srcdir)/tests/t_*.at) \
368 testsuite \
369 tests/atconfig.in \
370 tests/atlocal.in \
371 package.m4 \
372 package_revision.txt package_full_revision_dist.txt \
373 $(wildcard $(srcdir)/m4/*.m4) \
374 popt/README popt/CHANGES popt/COPYING popt/popt.3 popt/popt.ps \
375 $(wildcard $(srcdir)/popt/test?.c) popt/testit.sh \
376 sqlite/keywordhash.h \
377 contrib/README \
378 contrib/monoprof.sh \
379 contrib/monotone-notify.pl \
380 contrib/monotone-import.pl \
381 contrib/ciabot_monotone.py \
382 contrib/monotone.el \
383 contrib/monotone-nav.el \
384 contrib/monotone.bash_completion \
385 contrib/monotone.zsh_completion \
386 contrib/mtbrowse.sh \
387 contrib/colorize \
388 contrib/color-logs.sh \
389 contrib/color-logs.conf \
390 contrib/get_stdio.pl \
391 contrib/ciabot_monotone_hookversion.py \
392 contrib/monotone-cvs-ignore.lua \
393 contrib/usher.cc \
394 win32/monotone.iss \
395 $(wildcard $(srcdir)/debian/*)
396
397MAKEINFOFLAGS=-I $(top_builddir)
398
399monotone.info: monotone.texi version.texi std_hooks.lua
400
401monotone.pdf: monotone.texi version.texi std_hooks.lua $(PDF_FIGURES)
402
403monotone.dvi: monotone.texi version.texi std_hooks.lua $(EPS_FIGURES)
404
405#%.eps: %.epsi
406#mv -f $< $@
407#
408#%.epsi: %.ps
409#ps2epsi $< $@
410
411%.eps : %.ps
412ps2eps <$< >$@
413
414$(top_builddir)/figures/%.ps: $(srcdir)/figures/%.pdf
415mkdir -p $(top_builddir)/figures
416#acroread -toPostScript -pairs $< $@
417pdftops $< $@
418
419
420# testsuite stuff (could this possibly be more ugly?)
421
422if BUILD_UNIT_TESTS
423TESTS = unit_tests $(srcdir)/testsuite
424else
425TESTS = $(srcdir)/testsuite
426endif
427
428TESTS_ENVIRONMENT=AUTOTEST_PATH="."
429
430mostlyclean-local:
431rm -rf testsuite.dir testsuite.log package_full_revision_dist.txt
432
433DISTCLEANFILES = tests/atconfig mt-stdint.h xgettext.opts pch-build.hh.gch.dep
434
435# distcheck stuff
436
437DISTCHECK_CONFIGURE_FLAGS = \
438 --with-bundled-sqlite \
439 --with-bundled-lua \
440 --enable-static-boost
441
442# note: these targets are all in srcdir; they are *not* built during
443# the VPATH build part of distcheck (with non-writable source
444# directory) but only during the initial dist stage.
445
446$(srcdir)/package.m4: $(top_srcdir)/configure.ac
447{ \
448 echo '# Signature of the current package.'; \
449 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
450 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
451 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
452 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
453 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
454} >$(srcdir)/package.m4
455
456$(srcdir)/testsuite: $(srcdir)/testsuite.at $(wildcard $(srcdir)/tests/t_*.at) \
457 $(srcdir)/package.m4
458autom4te --language=Autotest -I $(srcdir) $< -o $@.tmp
459mv -f $@.tmp $@
460
461# we generate some headers to copy data into the executable
462
463BUILT_SOURCES_CLEAN = std_hooks.h test_hooks.h schema.h views.h \
464 package_revision.txt package_revision.c \
465 package_full_revision.txt package_full_revision.c \
466 $(PCH_FILE) $(PCH_BUILD)
467BUILT_SOURCES_NOCLEAN = package_revision.txt package_full_revision_dist.txt
468BUILT_SOURCES = $(BUILT_SOURCES_CLEAN) $(BUILT_SOURCES_NOCLEAN)
469CLEANFILES = $(BUILT_SOURCES_CLEAN) $(EPS_FIGURES)
470
471txt2c: txt2c.cc Makefile
472$(CXX) $(CXXFLAGS) -o $@ $<
473chmod 0755 $@$(EXEEXT)
474
475apidocs:
476doxygen doxygen.cfg
477
478%.h: %.sql txt2c Makefile
479./txt2c $< $(*F) >$@.tmp
480cmp -s $@.tmp $@ || mv -f $@.tmp $@
481rm -f $@.tmp
482
483%.h: %.lua txt2c Makefile
484./txt2c $< $(*F) >$@.tmp
485cmp -s $@.tmp $@ || mv -f $@.tmp $@
486rm -f $@.tmp
487
488# A fake target so we can use MT/revision as a prerequisite, yet not
489# crash if MT/revision does not exist.
490$(srcdir)/MT/revision:
491true
492package_revision.txt: $(srcdir)/MT/revision
493if [ -f $< ]; then cp $< $@; fi
494if [ ! -f $@ ]; then echo "unknown" > $@; fi
495package_revision.c: package_revision.txt txt2c Makefile
496./txt2c --strip-trailing --no-static $< package_revision >$@.tmp
497cmp -s $@.tmp $@ || mv -f $@.tmp $@
498rm -f $@.tmp
499
500.PHONY: package_full_revision.txt apidocs
501package_full_revision.txt:
502REAL_BLDDIR=$$PWD/$(top_builddir); \
503(cd $(srcdir) && $$REAL_BLDDIR/monotone status) 2>/dev/null >$@ \
504|| (cd $(srcdir) && monotone status) 2>/dev/null >$@ \
505|| (cp $(srcdir)/package_full_revision_dist.txt 2>/dev/null $@) \
506|| (echo "unknown" >$@)
507package_full_revision_dist.txt: package_full_revision.txt
508cp $< $@
509(echo ''; \
510 echo ' Generated from data cached in the distribution;'; \
511 echo ' further changes may have been made.') >> $@
512package_full_revision.c: package_full_revision.txt txt2c Makefile
513./txt2c --no-static $< package_full_revision >$@.tmp
514cmp -s $@.tmp $@ || mv -f $@.tmp $@
515rm -f $@.tmp
516
517# automake doesn't build html docs
518
519monotone.html: monotone.texi version.texi std_hooks.lua texinfo.css
520makeinfo --no-split --no-headers --output $@ --html $<
521perl -i.perlbak -pe 's@<head>@<head>\n<link type="text/css" rel="stylesheet" href="texinfo.css" />@' $@
522rm -f monotone.html.perlbak
523
524# The .perlbak thing is needed, otherwise the perl executions fails on MinGW
525
526html: monotone.texi version.texi std_hooks.lua texinfo.css
527mkdir -p html
528makeinfo --number-sections --html --output html $<
529perl -i.perlbak -pe 's@<head>@<head>\n<link type="text/css" rel="stylesheet" href="texinfo.css" />@' html/*.html
530rm -f html/*.perlbak
531cp texinfo.css html

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status