* Makefile.in: Work around MAKEOVERRIDES problem with older versions of make.
* Makefile.common: Ditto.
This commit is contained in:
parent
d5337b4c13
commit
7f363152c5
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Apr 9 02:06:49 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in: Work around MAKEOVERRIDES problem with older versions
|
||||||
|
of make.
|
||||||
|
* Makefile.common: Ditto.
|
||||||
|
|
||||||
Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
|
Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
|
||||||
|
|
||||||
* configure.in: Added cinstall to the list of subdirs.
|
* configure.in: Added cinstall to the list of subdirs.
|
||||||
|
|
|
@ -88,7 +88,13 @@ COMPILE_CC:=$(CC) $c -nostdinc $(ALL_CFLAGS) -I$(GCC_INCLUDE)
|
||||||
|
|
||||||
vpath %.a $(cygwin_build):$(w32api_lib):$(newlib_build)/libc:$(newlib_build)/libm
|
vpath %.a $(cygwin_build):$(w32api_lib):$(newlib_build)/libc:$(newlib_build)/libm
|
||||||
|
|
||||||
unexport MAKEOVERRIDES
|
MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
|
||||||
|
|
||||||
|
ifneq ($(MAKEOVERRIDES_WORKAROUND),)
|
||||||
|
override MAKE:=$(MAKE) $(MAKEOVERRIDES)
|
||||||
|
MAKEOVERRIDES:=
|
||||||
|
export MAKEOVERRIDES
|
||||||
|
endif
|
||||||
|
|
||||||
.PRECIOUS: %.o
|
.PRECIOUS: %.o
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,13 @@ CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
unexport MAKEOVERRIDES
|
MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
|
||||||
|
|
||||||
|
ifneq ($(MAKEOVERRIDES_WORKAROUND),)
|
||||||
|
override MAKE:=$(MAKE) $(MAKEOVERRIDES)
|
||||||
|
MAKEOVERRIDES:=
|
||||||
|
export MAKEOVERRIDES
|
||||||
|
endif
|
||||||
|
|
||||||
all: Makefile $(SUBDIRS)
|
all: Makefile $(SUBDIRS)
|
||||||
|
|
||||||
|
@ -54,13 +60,13 @@ install: Makefile $(INSTALL_SUBDIRS)
|
||||||
clean: $(CLEAN_SUBDIRS)
|
clean: $(CLEAN_SUBDIRS)
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
@$(MAKE) -C $@ $(MAKEOVERRIDES) all
|
@$(MAKE) -C $@ all
|
||||||
|
|
||||||
$(INSTALL_SUBDIRS):
|
$(INSTALL_SUBDIRS):
|
||||||
@$(MAKE) -C ${patsubst install_%,%,$@} $(MAKEOVERRIDES) install
|
@$(MAKE) -C ${patsubst install_%,%,$@} install
|
||||||
|
|
||||||
$(CLEAN_SUBDIRS):
|
$(CLEAN_SUBDIRS):
|
||||||
@$(MAKE) -C ${patsubst clean_%,%,$@} $(MAKEOVERRIDES) clean
|
@$(MAKE) -C ${patsubst clean_%,%,$@} clean
|
||||||
|
|
||||||
.PRECIOUS: Makefile
|
.PRECIOUS: Makefile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue