1TCLSH		= /usr/local/bin/tclsh
2
3FILES =	\
4	webapp.tcl \
5	arrgen.tcl \
6	pgsql.tcl
7
8build:	pkgIndex.tcl
9	@echo ">>> Making build in `pwd`"
10
11pkgIndex.tcl:	$(FILES)
12	echo "pkg_mkIndex ." | $(TCLSH)
13	chmod g+w pkgIndex.tcl
14
15install: build
16	@echo ">>> Making install in `pwd`"
17	install -m 0644 *.tcl *.n $(DESTDIR)$(NMLIBDIR)/pkgtcl
18
19clean:
20	rm -f pkgIndex.tcl
21