4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 15:40:14 +08:00
Mike Frysinger 67208d9ef8 newlib: merge doc into top-level Makefile
Avoid a recursive make with this tiny subdir to speed things up a bit.
2021-11-15 19:35:04 -05:00

21 lines
576 B
Makefile

# We can't use noinst_PROGRAMS, because automake will add $(EXEEXT).
noinst_DATA += doc/makedoc
MKDOC = doc/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): doc/makedoc.o
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
doc/makedoc.o: doc/makedoc.c
$(MKDIR_P) doc
$(CC_FOR_BUILD) -g $(CFLAGS_FOR_BUILD) -o $@ -c $<
man-cache:
${srcdir}/doc/makedocbook.py --cache
PHONY += man-cache