omindex.cc: Fix comment typo.
[xapian.git] / xapian-bindings / generic / generic.mk
blob835c0ec0a2799f9e9e1721250fd590b5bb448095
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.
5 if MAINTAINER_MODE
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
9 endif
11 if NEED_INTREE_DYLD
12 # This is a hack for Mac OS X to enable tests to work when built against an
13 # uninstalled xapian-core tree. See http://trac.xapian.org/ticket/322
14 export DYLD_LIBRARY_PATH=$(INTREE_DYLD_PATH)
15 endif
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@
20 endif
22 # Define separately to allow overriding easily with: make SWIG_WERROR=
23 SWIG_WERROR = -Werror
25 # Recover from the removal of $@. A full explanation of this is in the
26 # automake manual under the heading "Multiple Outputs".
27 make_many_locked = \
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 \
31 rm -f '$(stamp)'; \
32 $(MAKE) $(AM_MAKEFLAGS) '$(stamp)'; \
33 result=$$?; rm -rf '$(stamp)-lck'; exit $$result; \
34 else \
35 while test -d '$(stamp)-lck'; do sleep 1; done; \
36 test -f '$(stamp)'; \
37 fi; \
40 multitarget_begin = @rm -f $@-t; touch $@-t
41 multitarget_end = @mv -f $@-t $@