File:  [DragonFly] / src / share / mk / Attic /
Revision 1.3: download - view: text, annotated - select for diffs
Mon Sep 8 23:39:23 2003 UTC (11 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: HEAD
Add, which Makefile's in /usr/dports will use instead of  Modify to check for the existance of the same
port in /usr/dports and, if found, to cd into the dport and run the target

NOTE: /usr/bin/relpath is required (see /usr/src/usr.bin/relpath).

# $FreeBSD: src/share/mk/,v 1.303.2.2 2002/07/17 19:08:23 ru Exp $
# $DragonFly: src/share/mk/,v 1.3 2003/09/08 23:39:23 dillon Exp $

PORTSDIR?=	/usr/ports
DPORTSDIR?=	/usr/dports
PORTPATH!=	/usr/bin/relpath ${PORTSDIR} ${.CURDIR}

.if !exists(${DPORTSDIR}/${PORTPATH}/Makefile)
# If the port does not exist in /usr/dports/<portpath> use the original
# FreeBSD port
.include <>
.include "${PORTSDIR}/Mk/"


# Otherwise retarget to the DragonFly override port.

TARGETS+=	build
TARGETS+=	checksum
TARGETS+=	clean
TARGETS+=	clean-for-cdrom
TARGETS+=	clean-for-cdrom-list
TARGETS+=	clean-restricted
TARGETS+=	clean-restricted-list
TARGETS+=	configure
TARGETS+=	deinstall
TARGETS+=	depend
TARGETS+=	depends
TARGETS+=	describe
TARGETS+=	distclean
TARGETS+=	extract
TARGETS+=	fetch
TARGETS+=	fetch-list
TARGETS+=	ignorelist
TARGETS+=	makesum
TARGETS+=	maintainer
TARGETS+=	package
TARGETS+=	realinstall
TARGETS+=	reinstall
TARGETS+=	install
TARGETS+=	tags

.for __target in ${TARGETS}
.if !target(${__target})