Straying from BSD make(1) compatibility
Closed / Fixed9cc1db9fb675bf64dfc775372fab1f697e46bb44Created 8 years agoUpdated 8 years ago
Descriptionplain2018-11-19 06:48:27
kamloops$ make
make: "/home/bch/work/tcl/unix/Makefile" line 692: Missing dependency operator
make: "/home/bch/work/tcl/unix/Makefile" line 695: Need an operator
make: Fatal errors encountered -- cannot continue
./unix/Makefile, as generated by ./configure
============================================
692 ifeq (${ZIPFS_BUILD},1)
...
695 endif
on NetBSD (for example), replacing those with:
.if ${ZIPFS_BUILD} == 1
...
.endif
seems to pacify make(1) (build still fails, but for other reasons), but now gmake complains.
Mutually compatible solution tbd.
Referenced by1
5d40e4016bFix for ticket [9cc1db9fb675bf64dfc775372fab1f697e46bb44] check-in2018-11-19 23:49:56
dgp Ticket [9cc1db9fb6]: 3 changes
[History diff]2018-11-19 18:39:22
hypnotoadplain2018-11-19 21:50:11
That doesn't work outside of BSD. Or even in BSD, Make on my Macosx box pukes on that.
bchplain2018-11-19 22:31:13
Re: Work outside of BSD -- right. I mentioned that in the opening comment. Re: "Even in BSD (MacOS X)" -- I bet if you: $ make --version ...you'll see you're using GNU Make. Hopefully we can find either a commonality or logically equivalent operation, though.
hypnotoadwiki2018-11-19 23:51:41
make --version > GNU Make 3.81
Worked out a fix that should makes both happy:
@if test "${ZIPFS_BUILD}" = "1" ; then \
cat ${TCL_ZIP_FILE} >> ${LIB_FILE}; \
${NATIVE_ZIP} -A ${LIB_FILE}; \
fi
Checked into core-8-branch ([5d40e4016b89fa2ecde93aed7966f01e2f9d34293fdb7fe8209aa0d50363cce8])
bchwiki2018-11-20 04:16:16
Build proceeds on original problem env. Fixed per [5d40e4016b89fa2ecde93aed7966f].
Log in (anonymous is fine) to add a comment.