Fix too many ]s in try
[tcl-tlc-base.git] / Makefile
blobba9dfe655e72fd1b5710fe626a64b80aa514f16d
1 DESTDIR=
3 TEAPOT=/var/teapot
4 MYDESTDIR=$(DESTDIR)/usr/lib/tlc-base
6 TCLSH = TCLLIBPATH="." tclsh8.5
8 all: scripts
10 scripts: scripts-stamp
12 scripts-stamp: scripts/*.tcl scripts/*.itcl
13 ./make_tclIndex.tcl
14 touch scripts-stamp
16 install: all
17 install -d $(MYDESTDIR)
18 install -d $(MYDESTDIR)/scripts
19 install pkgIndex.tcl $(MYDESTDIR)
20 install init.tcl $(MYDESTDIR)
21 install scripts/*.tcl $(MYDESTDIR)/scripts
22 install scripts/*.itcl $(MYDESTDIR)/scripts
23 install scripts/tclIndex $(MYDESTDIR)/scripts
25 teapot: all
26 install -d teapot
27 -rm -f teapot/*
28 teapot-pkg generate --output teapot --type zip .
30 install-teapot: teapot
31 teapot-admin add $(TEAPOT) teapot/*.zip
33 refresh-teapot: teapot
34 teacup remove TLC-base
35 teacup install teapot/*
37 uninstall:
38 -rm -rf $(MYDESTDIR)
40 test: all
41 $(TCLSH) tests/all.tcl $(TESTFLAGS)
43 clean:
44 -rm -rf scripts/tclIndex scripts-stamp teapot