#
# $Id: Makefile,v 1.6 2009/03/18 09:43:14 he Exp $
#

SCRIPTS=	emit-map.pl \
		ex-png.pl \
		plot-all.pl \
		intf-load.pl \
		list-ports.pl \
		load-map.pl \
		tbl-report.pl \
		xf-load-map.pl \
		r-all.pl \
		top10.pl

SUBST=	${.CURDIR}/../../subst

all:

install:
	@for s in ${SCRIPTS}; do \
		base=`basename $$s .pl`; \
		dst=${CGIDIR}/$$base; \
		tmp=/tmp/rtmp.$$$$; \
		echo sed -f ${SUBST} '<' $$s '>' $$tmp; \
		sed -f ${SUBST} < $$s > $$tmp; \
		echo install -c -m 555 $$tmp $$dst; \
		install -c -m 555 $$tmp $$dst; \
		echo rm -f $$tmp; \
		rm -f $$tmp; \
	done

obj:
clean:
cleandir:

.include "../../Makefile.inc"

