If `make' is in parallel mode, it will fire off multiple simultaneous
builds of the same library, and they interfere with each other.
Instead, just arrange that the libraries are made when we try to
distribute things.
###--------------------------------------------------------------------------
### Distribution.
+## Make sure the precomputed tables are available. Hang this off of any
+## distributed file.
+mLib.pc.in: ensure-precomp-libs
+ensure-precomp-libs:
+ for d in ui utils; do (cd $$d && $(MAKE) all) || exit 1; done
+
## Release number.
dist-hook::
echo $(VERSION) >$(distdir)/RELEASE
if !CROSS_COMPILING
$(precomp)/crc32-tab.c:
@$(mkdir_p) $(precomp)
- @$(build_util_libs)
@$(MAKE) crc-mktab$(EXEEXT)
$(AM_V_GEN)./crc-mktab -o $@.new \
-p0x04c11db7 -b32 -B8 -r -c \
if !CROSS_COMPILING
$(precomp)/unihash-global.c:
@$(mkdir_p) $(precomp)
- @$(build_util_libs)
@$(MAKE) unihash-mkstatic$(EXEEXT)
$(AM_V_GEN)./unihash-mkstatic -c -sunihash_global -iunihash.h \
-o$@.new && mv $@.new $@
$(top_builddir)/ui/libui.la \
$(top_builddir)/utils/libutils.la
-## Making sure they're built properly. Without this, `make dist' on a bare
-## source tree fails hopelessly.
-build_util_libs = \
- for i in ui utils; do \
- (cd $(top_builddir)/$$i && $(MAKE) lib$$i.la) || exit 1; \
- done
-
###--------------------------------------------------------------------------
### Testing.