1 ## Makefile fragment included from each language binding directory which uses
2 ## SWIG. Any makefile rules or variables which should be set for all SWIG
3 ## bindings should be placed here.
6 # Export these so that we run the locally installed autotools when building
7 # from a bootstrapped git tree.
8 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
12 # This is a hack for Mac OS X to enable tests to work when built against an
13 # uninstalled xapian-core tree. See https://trac.xapian.org/ticket/322
14 export DYLD_LIBRARY_PATH
=$(INTREE_DYLD_PATH
)
17 if OVERRIDE_MACOSX_DEPLOYMENT_TARGET
18 # This requires GNU make, but apparently that's the default on OS X.
19 export MACOSX_DEPLOYMENT_TARGET
=@OVERRIDE_MACOSX_DEPLOYMENT_TARGET@
22 # Define separately to allow overriding easily with: make SWIG_WERROR=
25 # Recover from the removal of $@. A full explanation of this is in the
26 # automake manual under the heading "Multiple Outputs".
28 @if
test -f
$@
; then
:; else \
29 trap
'rm -rf "$(stamp)-lck" "$(stamp)"' 1 2 13 15; \
30 if mkdir
'$(stamp)-lck' 2>/dev
/null
; then \
32 $(MAKE
) $(AM_MAKEFLAGS
) '$(stamp)'; \
33 result
=$$?
; rm -rf
'$(stamp)-lck'; exit
$$result; \
35 while
test -d
'$(stamp)-lck'; do sleep
1; done
; \
40 multitarget_begin
= @
rm -f
$@
-t
; touch
$@
-t
41 multitarget_end
= @mv
-f
$@
-t
$@