cvs commit: ports/emulators Makefile ports/emulators/fceu Makefile distinfo pkg-descr pkg-message pkg-plistpatch-Makefile.u

Will Andrews will at csociety.org
Sun Jul 20 09:53:59 PDT 2003


On Mon, Jul 21, 2003 at 01:26:14AM +0900, Nakata Maho wrote:
> > $ make -V PORTVERSION
> > "Makefile", line 40: Unassociated shell command "@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes.""
> > make: fatal errors encountered -- cannot continue
> 
> Hmmm, it doesn't reproduce my environment.
> 
> % make -V PORTREVISION
> 0
> % make -V PORTVERSION
> 0.96
> 
> % uname -a
> FreeBSD debussy.private.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Jul 14 07:14:39 JST 2003     maho at debussy.private.org:/work/cvsup/src/sys/i386/compile/MAHO_DEBUSSY-5-CURRENT  i386

Interesting.  Your make must be pretty messed up, because the
shell command in question isn't under any target, so there is no
way it's valid make syntax.  And ECHO isn't a variable in
bsd.port.mk, but ECHO_MSG and ECHO_CMD are.

You want something like this:

--- Makefile    20 Jul 2003 11:51:26 -0000      1.1
+++ Makefile    20 Jul 2003 16:52:39 -0000
@@ -38,7 +38,7 @@
 .endif
-.if !defined(WITH_OPTIMIZED_FLAGS)
-       @${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
-.endif
 
 pre-everything::
+.if !defined(WITH_OPTIMIZED_FLAGS)
+       @${ECHO_MSG} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
+.endif
 .if !defined(NOPORTDOCS) && !defined(TECH_DOC_INSTALL)

Regards,
-- 
wca


More information about the cvs-ports mailing list