+2006-10-28 Bruno Haible <bruno@clisp.org>
+
+ Fix for parallel makes.
+ * Makefile.am (BUILT_SOURCES): Don't add config.h.
+ (all, check, install): Depend on config.h.
+ (config.h): Depend on the BUILT_SOURCES. Don't invoke make recursively.
+ Reported by Ralf Wildenhues.
+
2006-10-26 Bruno Haible <bruno@clisp.org>
* gettext-0.16 released.
# Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la
# from the global namespace, by prefixing them with "libgettextpo_".
-BUILT_SOURCES += config.h
-config.h:
+all check install: config.h
+config.h: $(BUILT_SOURCES)
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
: "Avoid double inclusion, to avoid a warning about redefinition of DLL_VARIABLE."; \
echo '#ifndef GTPO_CONFIG_H'; \
echo; \
echo '#endif /* GTPO_CONFIG_H */'; \
} > config.h && \
- { $(MAKE) $(BUILT_SOURCES) || { rm -f config.h; exit 1; }; } && \
if test -n "$(HAVE_GLOBAL_SYMBOL_PIPE)"; then \
{ \
for f in $(libgettextpo_la_AUXSOURCES) $(libgnu_la_SOURCES) $(libgnu_la_LIBADD); do \