Add rules to create a list of homepage links for all ports.

This commit is contained in:
espie 2002-03-13 13:51:59 +00:00
parent 5e8437204b
commit 9775511ef0
3 changed files with 20 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.36 2001/11/22 16:06:27 naddy Exp $
# $OpenBSD: Makefile,v 1.37 2002/03/13 13:51:59 espie Exp $
# $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $
#
@ -104,6 +104,11 @@ mirror-maker:
ECHO_MSG='echo >&2' \
>>${MIRROR_MK}
homepages.html:
@echo '<html><ul>' >$@
@${MAKE} homepage-links ECHO_MSG='echo >&2' >>$@
@echo '</ul></html>' >>$@
DISTFILES_DB?=${.CURDIR}/infrastructure/db/locate.database
distfiles-update-locatedb:

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.509 2002/03/10 06:02:16 brad Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.510 2002/03/13 13:51:59 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -2757,6 +2757,13 @@ unlink-categories:
fi
.endfor
homepage-links:
.if defined(HOMEPAGE)
@echo '<li><A HREF="${HOMEPAGE}">${PKGNAME}</A>'
.else
@echo '<li>${PKGNAME}'
.endif
.if ${FAKE:L} == "no"
. include "${PORTSDIR}/infrastructure/mk/old-install.mk"
.endif
@ -2792,4 +2799,5 @@ unlink-categories:
link-categories unlink-categories _package _solve-package-depends \
dir-depends _recurse-dir-depends package-dir-depends \
_package-recurse-dir-depends recursebuild-depends-list run-depends-list \
bulk-packages bulk-do _recurse-lib-depends lib-depends-check
bulk-packages bulk-do _recurse-lib-depends lib-depends-check \
homepage-links

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
# $OpenBSD: bsd.port.subdir.mk,v 1.43 2001/10/24 11:57:34 espie Exp $
# $OpenBSD: bsd.port.subdir.mk,v 1.44 2002/03/13 13:51:59 espie Exp $
# FreeBSD Id: bsd.port.subdir.mk,v 1.20 1997/08/22 11:16:15 asami Exp
#
# The include file <bsd.port.subdir.mk> contains the default targets
@ -151,7 +151,8 @@ ${SUBDIR}::
show obj fetch-makefile all-packages cdrom-packages \
dir-depends package-dir-depends bulk-packages \
ftp-packages packageinstall link-categories \
unlink-categories regress bulk-do lib-depends-check
unlink-categories regress bulk-do lib-depends-check \
homepage-links
.if !target(${__target})
${__target}: _SUBDIRUSE
@ -216,4 +217,4 @@ README.html:
beforeinstall afterinstall install realinstall fake \
all-packages cdrom-packages ftp-packages packageinstall \
link-categories unlink-categories dir-depends package-dir-depends \
regress lib-depends-check
regress lib-depends-check homepage-links