diff --git a/tools/portsgrowth/Makefile b/tools/portsgrowth/Makefile index 14ec9f21a7..33f5a6e168 100644 --- a/tools/portsgrowth/Makefile +++ b/tools/portsgrowth/Makefile @@ -1,39 +1,40 @@ -# $FreeBSD$ +# $FreeBSD: www/tools/portsgrowth/Makefile,v 1.1 2002/05/20 10:46:13 phantom Exp $ -.if exists(../../Makefile.conf) -.include "../../Makefile.conf" +.if exists(../../en/Makefile.conf) +.include "../../en/Makefile.conf" .endif -.if exists(../../Makefile.inc) -.include "../../Makefile.inc" +.if exists(../../en/Makefile.inc) +.include "../../en/Makefile.inc" .endif WEB_PREFIX?= ${.CURDIR}/../.. PRGRAPHDIR?= ${DESTDIR}${WEBBASE}/ports/growth GNUPLOT?= /usr/local/bin/gnuplot PNGTOPNM?= /usr/local/bin/pngtopnm PNMTOPNG?= /usr/local/bin/pnmtopng IMG= status.png CLEANFILES= ${IMG} INSTALL_WEB?= \ ${INSTALL} ${COPY} ${INSTALLFLAGS} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBMODE} all: ${IMG} update: sh getinfo.sh status.png: ports.plt ports.log ${GNUPLOT} ports.plt ${PNGTOPNM} ports.png | ${PNMTOPNG} -i > ${IMG} rm ports.png install: ${IMG} + -mkdir -p ${PRGRAPHDIR} .if exists(${.CURDIR}/${IMG}) ${INSTALL_WEB} ${.CURDIR}/${IMG} ${PRGRAPHDIR} .else ${INSTALL_WEB} ${IMG} ${PRGRAPHDIR} .endif -.include "${WEB_PREFIX}/../share/mk/web.site.mk" +.include "${WEB_PREFIX}/share/mk/web.site.mk"