Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 1999 14:25:53 -0700 (PDT)
From:      asami@FreeBSD.org (Satoshi - Ports Wraith - Asami)
To:        taoka@FreeBSD.org
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/lang/jdk-doc Makefile ports/lang/jdk-doc/pkg MESSAGE.tmpl MESSAGE
Message-ID:  <199905052125.OAA51502@silvia.hip.berkeley.edu>
In-Reply-To: <199905051507.IAA01913@freefall.freebsd.org> (message from Satoshi Taoka on Wed, 5 May 1999 08:07:38 -0700 (PDT))
References:   <199905051507.IAA01913@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 *     (When we "make install", pkg/MESSAGE is made from pkg/MESSAGE.tmpl.)

You shouldn't do that.  Don't write anything outside ${WRKDIR}.  You
can do something like this:

(rename pkg/MESSAGE.tmpl to pkg/MESSAGE)

PKGMESSAGE= ${WRKDIR}/MESSAGE

do-install:
         :
	@${SED} ... ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
	@${CAT} ${PKGMESSAGE}

(no pre-clean)

Also, there is no reason to have a separate post-install since your
Makefile supplies do-install too.

-PW


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905052125.OAA51502>