From 189930d06e2d06cbd9fae635ddf1d87d72857e37 Mon Sep 17 00:00:00 2001 From: hira Date: Wed, 30 Mar 2005 20:41:02 +0000 Subject: Don't extract unnecessary part for build. OK'd by xtraeme@. --- meta-pkgs/xorg/Makefile.common | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'meta-pkgs') diff --git a/meta-pkgs/xorg/Makefile.common b/meta-pkgs/xorg/Makefile.common index 49ac3605862..a7321f2232b 100644 --- a/meta-pkgs/xorg/Makefile.common +++ b/meta-pkgs/xorg/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.23 2005/03/30 20:30:24 hira Exp $ +# $NetBSD: Makefile.common,v 1.24 2005/03/30 20:41:02 hira Exp $ # # XBUILD_DIRS is the group of directories under ${WRKSRC} that will # be built in. @@ -293,6 +293,21 @@ do-configure: done . endif +# +# This can use for a single distfile. +# +. if !empty(XEXTRACTS) +_EXTRACTS= xc/config xc/include +. for _dir in ${XEXTRACTS} +_EXTRACTS+= xc/${_dir} +. endfor +. if !target(do-extract) +do-extract: ${WRKDIR} + cd ${WRKDIR} && \ + ${GZCAT} ${DISTDIR}/${DISTFILES} | ${TAR} xf - ${_EXTRACTS} +. endif +. endif + . if !target(do-build) do-build: @for dir in ${XBUILD_DIRS}; do \ -- cgit v1.2.3