From 5da4ff2e949883e47c25f0e29717b735aeab0ea6 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 9 Mar 2014 23:47:34 +0000 Subject: MFC r262689: Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined. Unconditional addition cause real fetch(1) and patch(1) programs are builded every time. --- share/mk/bsd.sys.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'share/mk') diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 4651121..339e18b 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -151,11 +151,15 @@ CFLAGS+= ${CWARNFLAGS} PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ beforelinking build build-tools buildfiles buildincludes \ checkdpadd clean cleandepend cleandir cleanobj configure \ - depend dependall distclean distribute exe extract fetch \ + depend dependall distclean distribute exe extract \ html includes install installfiles installincludes lint \ - obj objlink objs objwarn patch realall realdepend \ + obj objlink objs objwarn realall realdepend \ realinstall regress subdir-all subdir-depend subdir-install \ tags whereobj +.if defined(PORTNAME) +PHONY_NOTMAIN+= fetch patch +.endif + .PHONY: ${PHONY_NOTMAIN} .NOTMAIN: ${PHONY_NOTMAIN} -- cgit v1.1