From owner-freebsd-questions Sat Jun 28 11:00:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA29033 for questions-outgoing; Sat, 28 Jun 1997 11:00:15 -0700 (PDT) Received: from hotlava.com (bcQJOGJbAKDWz+OYoJHVfN9t4Ud8r8aL@internal-mail.hotlava.com [193.67.124.74]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA29028 for ; Sat, 28 Jun 1997 11:00:12 -0700 (PDT) Received: (qmail 24860 invoked from network); 28 Jun 1997 18:00:11 -0000 Received: from smokey.hotlava.com (193.67.124.73) by internal-mail.hotlava.com with SMTP; 28 Jun 1997 18:00:11 -0000 Received: (qmail 5663 invoked from network); 28 Jun 1997 18:00:09 -0000 Received: from internal-mail.hotlava.net (?7YBM4HWzq3jiGBYZZylEWwR3cmszSYIx?@193.67.124.74) by smokey.hotlava.net with SMTP; 28 Jun 1997 18:00:09 -0000 Received: (from gary@localhost) by internal-mail.hotlava.net id UAA24855 for freebsd-questions@Freebsd.org; Sat, 28 Jun 1997 20:00:09 +0200 (MET DST) Date: Sat, 28 Jun 1997 20:00:09 +0200 (MET DST) From: Gary Howland Message-Id: <199706281800.UAA24855@internal-mail.hotlava.net> To: freebsd-questions@Freebsd.org Subject: Suggestion for new .mk file Sender: owner-questions@Freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I think there is a need for a .mk file that defines an environment for building into /usr/local. Perhaps something like this: bsd.local.mk: # # The include file set common variables for # using the BSD makerules in the /usr/local/ hierarchy. # BINDIR?= /usr/local/bin LIBDIR?= /usr/local/lib LINTLIBDIR?= /usr/local/libdata/lint OBJDIR?= /usr/local/obj SHLIBDIR?= ${LIBDIR} SHAREDIR?= /usr/local/share MANDIR?= /usr/local/man/man Then in my Makefiles I can do stuff like this: SCRIPTS= mail_alias.perl MAN8= mail_alias.8 beforeinstall: .for script in ${SCRIPTS} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/${script} ${DESTDIR}${BINDIR}/${script:R} .endfor .include .include Is this a good idea? If so, who is the person in charge of the .mk files? Best regards, Gary Howland