diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-18 21:15:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-18 21:15:07 +0000 |
commit | e507190d0d6bc39293f665702c2506456ae31107 (patch) | |
tree | e0bb35773ef4b40f455703fa2781a51565bf1981 /mk/bsd.pkg.install.mk | |
parent | 94beb52331d3ebca1c93e936b12657a7a2fb3fcc (diff) | |
download | pkgsrc-e507190d0d6bc39293f665702c2506456ae31107.tar.gz |
When using bsd.pkg.install.mk, if a DEINSTALL or INSTALL file already
exists, then use it as the default value of DEINSTALL_EXTRA_TMPL or
INSTALL_EXTRA_TMPL.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index 4c01359c60e..4b66baf4719 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.24 2002/07/24 20:30:06 jlam Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.25 2002/09/18 21:15:18 jlam Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -25,10 +25,18 @@ INSTALL_FILE= ${WRKDIR}/.INSTALL # install/deinstall logic. # _HEADER_TMPL?= ${.CURDIR}/../../mk/install/header +.if !defined(DEINSTALL_EXTRA_TMPL) && exists(${.CURDIR}/DEINSTALL) +DEINSTALL_EXTRA_TMPL?= ${.CURDIR}/DEINSTALL +.else DEINSTALL_EXTRA_TMPL?= # empty +.endif DEINSTALL_TMPL?= ${.CURDIR}/../../mk/install/deinstall INSTALL_TMPL?= ${.CURDIR}/../../mk/install/install +.if !defined(INSTALL_EXTRA_TMPL) && exists(${.CURDIR}/INSTALL) +INSTALL_EXTRA_TMPL?= ${.CURDIR}/INSTALL +.else INSTALL_EXTRA_TMPL?= # empty +.endif _FOOTER_TMPL?= ${.CURDIR}/../../mk/install/footer # DEINSTALL_TEMPLATES and INSTALL_TEMPLATES are the default list of source |