From: Zartaj Majeed Date: Tue, 18 Dec 2012 09:50:50 +0000 (+0000) Subject: build: fix cygwin build issues X-Git-Tag: v8.21~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cedbca7f95865707d73273a5e06eed4e9a478ec;p=thirdparty%2Fcoreutils.git build: fix cygwin build issues * doc/local.mk (doc/constants.texi): Ensure the doc directory is present which is needed when doing a non source dir build, when the doc/constants.texi target is built before other doc targets. * src/local.mk: Add $(EXEEXT) to the make-prime-list calls. --- diff --git a/doc/local.mk b/doc/local.mk index 585faf0c3b..ad25528827 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -36,6 +36,7 @@ AM_MAKEINFOFLAGS = --no-split doc/constants.texi: $(top_srcdir)/src/tail.c $(top_srcdir)/src/shred.c $(AM_V_GEN)LC_ALL=C; export LC_ALL; \ + $(MKDIR_P) doc && \ { sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \ $(top_srcdir)/src/tail.c && \ sed -n -e \ diff --git a/src/local.mk b/src/local.mk index ead3b8b909..66028c9109 100644 --- a/src/local.mk +++ b/src/local.mk @@ -387,9 +387,9 @@ src/dircolors.h: src/dcgen src/dircolors.hin # known ints (currently 128-bit). BUILT_SOURCES += $(top_srcdir)/src/primes.h $(top_srcdir)/src/primes.h: - $(MAKE) src/make-prime-list + $(MAKE) src/make-prime-list$(EXEEXT) $(AM_V_GEN)rm -f $@ $@-t - $(AM_V_at)src/make-prime-list 5000 > $@-t + $(AM_V_at)src/make-prime-list$(EXEEXT) 5000 > $@-t $(AM_V_at)chmod a-w $@-t $(AM_V_at)mv $@-t $@