diff options
| author | christos <christos@NetBSD.org> | 2022-12-25 17:25:22 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2022-12-25 17:25:22 +0000 |
| commit | e58c0a8835488e6c1efd1079f1f8683d4e4ea9c9 (patch) | |
| tree | 0b7d9de700fe9ee1051cf9ae870ec4f9f176a116 /tools | |
| parent | 96829bdecafa60bf5caa0f59bd24cc50a0c432f4 (diff) | |
Handle both places where m68k-parse can be found (for 2.34 and 2.39)
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/binutils/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile index 1804f466c6d..f1ad79c3eb8 100644 --- a/tools/binutils/Makefile +++ b/tools/binutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2022/12/24 20:17:46 christos Exp $ +# $NetBSD: Makefile,v 1.35 2022/12/25 17:25:22 christos Exp $ .include <bsd.hostinit.mk> @@ -16,10 +16,18 @@ CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \ --disable-werror --enable-initfini-array=yes \ ${BRANDING} -build/gas/m68k-parse.c: ${GNUHOSTDIST}/gas/config/m68k-parse.c +.if exists(${GNUHOSTDIST}/gas/config/m68k-parse.c) +M68K_PARSE=${GNUHOSTDIST}/gas/config/m68k-parse.c +.elif exists(${GNUHOSTDIST}/gas/m68k-parse.c) +M68K_PARSE=${GNUHOSTDIST}/gas/m68k-parse.c +.else +.error "Can't find m68k-parse.c +.endif + +build/gas/m68k-parse.c: ${M68K_PARSE} @mkdir build 2>/dev/null || true @mkdir build/gas 2>/dev/null || true - cat ${GNUHOSTDIST}/gas/config/m68k-parse.c > ${.TARGET} + cat ${M68K_PARSE} > ${.TARGET} .configure_done: build/gas/m68k-parse.c |
