.include "files/somefile" before .include <bsd.port.pre.mk>

Mathieu Arnold mat at FreeBSD.org
Thu Aug 26 13:41:53 PDT 2004


+-Le 26/08/2004 23:32 +0300, Ion-Mihai Tetcu a dit :
| Hi,
| 
| 
| Is it legal to include a file from files _before_ including
| bsd.port.pre.mk ?
| 
| I need to obtain some long lists ( of DISTFILES and slave ports) and
| having them in a separate file would make maintenance much more easy.
| 
| The problem I see is that .CURDIR is not defined; does this break
| something ?

.CURDIR is an internal make variable, it's not defined by bsd.*.mk :


mat $ cat Makefile
test:
        @echo ${.CURDIR}
mat $ make test
/home/mat

What problem are you trying to solve ?

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040826/07a62505/attachment.bin


More information about the freebsd-ports mailing list