Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 22:49:24 +0900 (JST)
From:      Masahide -mac- NODA <mac@clave.gr.jp>
To:        current@FreeBSD.org
Subject:   about beforeinstall target in /usr/share/mk/*.mk
Message-ID:  <20020610.224924.74752528.mac@clave.gr.jp>

next in thread | raw e-mail | index | archive | help
Hi.

In /usr/share/mk/bsd.*.mk, 'beforeinstall' target execute after install
on current.

You found it to doing below in current:

  % cd /usr/src/share/mk
  % make install -n
  install -c -o root -g wheel  -m 444 bsd.README bsd.cpu.mk bsd.dep.mk bsd.doc.mk bsd.files.mk bsd.info.mk bsd.incs.mk bsd.init.mk bsd.kern.mk bsd.kmod.mk bsd.lib.mk bsd.libnames.mk bsd.man.mk bsd.nls.mk bsd.obj.mk bsd.own.mk bsd.port.mk bsd.port.post.mk bsd.port.pre.mk bsd.port.subdir.mk bsd.prog.mk bsd.subdir.mk bsd.sys.mk sys.mk /usr/share/mk
  date '+%Y%m%d' > /var/db/port.mkversion
  %

but, in makefile, 

  beforeinstall:
          date '+%Y%m%d' > ${DESTDIR}/var/db/port.mkversion


beforeinstall target execute after install.

### I found it at installing portupgrade from ports. :-)
-- 
mac@clave.gr.jp/mac@jp.freebsd.org

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




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