On 12/26/17 07:26, Paul Smith wrote:
A faster way for you to get answers would be to put the relevant
makefile lines into your email so we could all see them without
installing an entirely different operating system, or pulling down a
software package, unpacking it, and snuffling through its build system.
Here are all lines where the variable ARCH appears in the makefile. ARCH
doesn't get substituted. Renaming ARCH -> ARCHX changes the behavior to
what is expected.
# beginning of the Makefile: 2 values have shell substitutions, but ARCH
doesn't get substituted and OSTYPE does
.PHONY: all depend clean lint doc doxygen check valgrind libdbl
coverage
ARCH := $(shell uname -m | \
sed \
-e s/sun../sparc/ \
-e s/i.86/x86/ \
-e s/i86pc/x86/ \
-e s/amd64/x86_64/ \
-e s/IP../mips/ \
-e s/9000..../hppa/ \
-e s/Power\ Macintosh/ppc/ \
-e s/00........../pwr4/)
OSTYPE := $(shell uname -s | \
tr '[:upper:]' '[:lower:]' | \
tr '/' '_' | \
sed \
-e s/freebsd/linux/ \
-e s/cygwin.*/cygwin/ \
-e s/irix../irix/ \
-e s/windows.*/windows/ \
-e s/mingw.*/mingw/)
# just some use of ARCH
BASE = $(OSTYPE).$(ARCH).$(COMP).$(OPT)
OBJDIR = obj/O.$(OSTYPE).$(ARCH).$(COMP).$(LINK).$(OPT)
NAME = zimpl
BINNAME =
$(NAME)-$(VERSION).$(OSTYPE).$(ARCH).$(COMP).$(LINK).$(OPT)
# include looking for a non-existent file because substitution hasn't
been performed, and breaking the build
include make/make.$(OSTYPE).$(ARCH).$(COMP).$(OPT)
# here go makefile targets, and it ends
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make