b17153d380
This commit brings in some synchronizations, Original revisions for all Makefiles, switch from en/web.mk to share/mk/web.site.mk
83 lines
1.9 KiB
Makefile
83 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
# The FreeBSD Russian Documentation Project
|
|
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.4 2000/11/10 17:04:52 phantom Exp $
|
|
# Original revision: 1.30
|
|
|
|
.if exists(../Makefile.conf)
|
|
.include "../Makefile.conf"
|
|
.endif
|
|
|
|
.if exists(../Makefile.inc)
|
|
.include "../Makefile.inc"
|
|
.endif
|
|
|
|
.if exists(../../en/ports/Makefile.inc)
|
|
.include "../../en/ports/Makefile.inc"
|
|
.endif
|
|
|
|
CVS_READONLY?= YES
|
|
CVS_OPT+= -Q
|
|
.if !empty(CVS_READONLY)
|
|
CVS_OPT+= -R
|
|
.endif
|
|
|
|
#
|
|
# This hack is allows to build www/ tree for case when ports/ located
|
|
# in other repository, for example Repository of Translation Project
|
|
#
|
|
.if defined(PORTSCVSROOT) && !empty(PORTSCVSROOT)
|
|
CVS_OPT+= -d ${PORTSCVSROOT}
|
|
.endif
|
|
|
|
.if defined(NOPORTSCVS)
|
|
${INDEX}: $${PORTSBASE}/${PINDEX}
|
|
cp ${PORTSBASE}/${PINDEX} ${INDEX}
|
|
|
|
${Y2K}: $${PORTSBASE}/${PY2K}
|
|
cp ${PORTSBASE}/${PY2K} ${Y2K}
|
|
|
|
.else
|
|
${INDEX}: ${cvsindex}
|
|
cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX}
|
|
|
|
${Y2K}: ${cvsy2k}
|
|
cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K}
|
|
|
|
.endif
|
|
|
|
# build the list of available packages only on the
|
|
# main FreeBSD machines
|
|
hostname!= hostname
|
|
|
|
.if defined(NOPORTSCVS)
|
|
packages.exists:
|
|
.else
|
|
packages.exists: ${cvsindex} ${cvsy2k}
|
|
.endif
|
|
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
|
|
.if exists(${.CURDIR}/../../en/ports/packages.exists)
|
|
cp ${.CURDIR}/../../en/ports/${.TARGET} .
|
|
.else
|
|
@if sh ${.CURDIR}/../../en/ports/packages > ${.TARGET}.temp; then \
|
|
mv ${.TARGET}.temp ${.TARGET}; \
|
|
else \
|
|
rm ${.TARGET}.temp; touch ${.TARGET}; \
|
|
fi;
|
|
.endif
|
|
.else
|
|
touch ${.TARGET}
|
|
.endif
|
|
|
|
Makefile.gen: index.sgml .NOTMAIN
|
|
echo DOCS= *.sgml > Makefile.gen
|
|
|
|
index.sgml: ${INDEX} ${Y2K} categories packages.exists portindex ports.inc .NOTMAIN
|
|
rm -f *.sgml
|
|
${PORTINDEX} ${INDEX} ${Y2K} ${.CURDIR}
|
|
|
|
install: all
|
|
|
|
all install clean:
|
|
(cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET})
|
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|