diff options
author | ache <ache@FreeBSD.org> | 2014-03-09 23:47:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2014-03-09 23:47:34 +0000 |
commit | 5da4ff2e949883e47c25f0e29717b735aeab0ea6 (patch) | |
tree | cfc9ff73a763b34284735c39821559fda0f3509b /share | |
parent | e1a0ecea9bb84b28b4c22afe1decfeb32acc2d6e (diff) | |
download | FreeBSD-src-5da4ff2e949883e47c25f0e29717b735aeab0ea6.zip FreeBSD-src-5da4ff2e949883e47c25f0e29717b735aeab0ea6.tar.gz |
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.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.sys.mk | 8 |
1 files changed, 6 insertions, 2 deletions
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} |