[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add EXEEXT to doc/local.mk
From: |
Di-an JAN |
Subject: |
[PATCH] Add EXEEXT to doc/local.mk |
Date: |
Sat, 15 Nov 2008 18:04:52 -0800 (PST) |
This fixed a build failure on Cygwin, where EXEEXT=.exe
...
Making all in .
make[2]: Entering directory `/c/git/bison'
rm -f doc/cross-options.texi doc/cross-options.texi.tmp
make src/bison
make[3]: Entering directory `/c/git/bison'
make[3]: *** No rule to make target `src/bison'. Stop.
make[3]: Leaving directory `/c/git/bison'
make[2]: *** [doc/cross-options.texi] Error 2
make[2]: Leaving directory `/c/git/bison'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/git/bison'
make: *** [all] Error 2
Instead of the minimal change of adding $(EXEEXT), I made src/bison
a real prerequisite since it's in the same Makefile now.
Tested on Cygwin with `touch src/getargs.c; make' and spot checking
with info and pdf.
2008-11-15 Di-an Jan <address@hidden>
Add $(EXEEXT) to src/bison used as a make prerequisite.
* doc/local.mk (cross-options.texi): Use src/bison as prerequisite
instead of src/getarg.c. Don't make src/bison explicitly.
diff --git a/doc/local.mk b/doc/local.mk
index 15a232f..4b5757d 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -29,9 +29,8 @@ clean-local:
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi
-$(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
+$(CROSS_OPTIONS_TEXI): src/bison$(EXEEXT) $(CROSS_OPTIONS_PL)
-rm -f $@ address@hidden
- $(MAKE) $(AM_MAKEFLAGS) src/bison
$(top_builddir)/src/bison --help | perl $(CROSS_OPTIONS_PL)
>address@hidden
mv address@hidden $@
MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)
- [PATCH] Add EXEEXT to doc/local.mk,
Di-an JAN <=