mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 11:31:00 +08:00
4007871174
Ensure the Python Lex/Yacc (PLY) cache used by makedocbook is initialized before it is used by parallelizable rules to make the DocBook XML, as it appears that these can collide in cache generation, leading to errors. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
29 lines
747 B
Makefile
29 lines
747 B
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
# We can't use noinst_PROGRAMS, because automake will add $(EXEEXT).
|
|
noinst_DATA = makedoc
|
|
|
|
MKDOC = makedoc$(EXEEXT_FOR_BUILD)
|
|
|
|
# We don't use CFLAGS with CC_FOR_BUILD because here CFLAGS will
|
|
# actually be CFLAGS_FOR_TARGET, and in some cases that will include
|
|
# -Os, which CC_FOR_BUILD may not recognize.
|
|
|
|
$(MKDOC): makedoc.o
|
|
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $(MKDOC) makedoc.o
|
|
|
|
makedoc.o: makedoc.c
|
|
$(CC_FOR_BUILD) -g $(CFLAGS_FOR_BUILD) -c $(srcdir)/makedoc.c
|
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../..
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
|
|
|
man:
|
|
|
|
man-cache:
|
|
${srcdir}/makedocbook.py --cache
|
|
|
|
.PHONY: man-cache
|