head	1.2;
access;
symbols
	HRS_XML_CLEANUP:1.2
	HRS_XML_CLEANUP_PRE:1.2
	EMILYBOYD_REDESIGN:1.2
	PRE_REDESIGN:1.2;
locks; strict;
comment	@# @;


1.2
date	2002.05.20.13.29.32;	author phantom;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.20.10.46.13;	author phantom;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Fix install target
@
text
@# $FreeBSD: www/tools/portsgrowth/Makefile,v 1.1 2002/05/20 10:46:13 phantom Exp $

.if exists(../../en/Makefile.conf)
.include "../../en/Makefile.conf"
.endif
.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"
@


1.1
log
@Simple Makefile to build ports growth graph.

Based on: tools/prstats/Makefile
@
text
@d1 1
a1 1
# $FreeBSD$
d3 2
a4 2
.if exists(../../Makefile.conf)
.include "../../Makefile.conf"
d6 2
a7 2
.if exists(../../Makefile.inc)
.include "../../Makefile.inc"
d33 1
d40 1
a40 1
.include "${WEB_PREFIX}/../share/mk/web.site.mk"
@

