2001-01-02 02:49:05 +01:00
|
|
|
# $FreeBSD: www/es/ports/Makefile,v 1.8 2000/11/29 23:56:58 kuriyama Exp $
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
.if exists(../Makefile.conf)
|
|
|
|
.include "../Makefile.conf"
|
|
|
|
.endif
|
2000-11-30 00:57:09 +01:00
|
|
|
.if exists(../Makefile.inc)
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.endif
|
1999-11-15 21:37:56 +01:00
|
|
|
.if exists(Makefile.inc)
|
|
|
|
.include "Makefile.inc"
|
1999-02-08 20:26:12 +01:00
|
|
|
.endif
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.if defined(NOPORTSCVS)
|
|
|
|
${INDEX}: $${PORTSBASE}/${PINDEX}
|
|
|
|
cp ${PORTSBASE}/${PINDEX} ${INDEX}
|
|
|
|
.else
|
1999-02-08 20:26:12 +01:00
|
|
|
${INDEX}: ${cvsindex}
|
|
|
|
cvs -QR co -p ${PINDEX} > ${INDEX}
|
1999-04-24 18:37:00 +02:00
|
|
|
.endif
|
|
|
|
|
1999-02-08 20:26:12 +01:00
|
|
|
# build the list of available packages only on the
|
|
|
|
# main FreeBSD machines
|
|
|
|
hostname!= hostname
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.if defined(NOPORTSCVS)
|
|
|
|
packages.exists:
|
|
|
|
.else
|
2001-01-02 02:49:05 +01:00
|
|
|
packages.exists: ${cvsindex}
|
1999-04-24 18:37:00 +02:00
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
|
1999-05-27 11:04:12 +02:00
|
|
|
.if exists(${.CURDIR}/../../en/ports/packages.exists)
|
|
|
|
cp ${.CURDIR}/../../en/ports/${.TARGET} .
|
|
|
|
.else
|
1999-02-08 20:26:12 +01:00
|
|
|
sh ${.CURDIR}/packages > ${.TARGET}
|
1999-05-27 11:04:12 +02:00
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
.else
|
|
|
|
touch ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
Makefile.gen: index.sgml .NOTMAIN
|
|
|
|
echo DOCS= *.sgml > Makefile.gen
|
|
|
|
|
2001-01-02 02:49:05 +01:00
|
|
|
index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN
|
1999-02-08 20:26:12 +01:00
|
|
|
rm -f *.sgml
|
2001-01-02 02:49:05 +01:00
|
|
|
${PORTINDEX} ${INDEX} ${.CURDIR}
|
1999-02-08 20:26:12 +01:00
|
|
|
|
1999-11-15 21:37:56 +01:00
|
|
|
install: all
|
|
|
|
|
|
|
|
all install clean:
|
2000-11-30 00:57:09 +01:00
|
|
|
(cd ${.CURDIR} &&${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET})
|
1999-11-15 21:37:56 +01:00
|
|
|
|
2000-11-30 00:57:09 +01:00
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|