Simple Makefile to build ports growth graph.

Based on: tools/prstats/Makefile
This commit is contained in:
Alexey Zelkin 2002-05-20 10:46:13 +00:00
parent 73ee547c75
commit f9fc3e2baf
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=13153

View file

@ -0,0 +1,39 @@
# $FreeBSD$
.if exists(../../Makefile.conf)
.include "../../Makefile.conf"
.endif
.if exists(../../Makefile.inc)
.include "../../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}
.if exists(${.CURDIR}/${IMG})
${INSTALL_WEB} ${.CURDIR}/${IMG} ${PRGRAPHDIR}
.else
${INSTALL_WEB} ${IMG} ${PRGRAPHDIR}
.endif
.include "${WEB_PREFIX}/../share/mk/web.site.mk"