Fixes
[tcl-tlc.git] / Makefile
blob5c01696f8cea8c82688055d8d3d1eccb9092387c
1 DESTDIR=
3 MYDESTDIR=$(DESTDIR)/usr/lib/tlc
4 TEAPOT=/var/teapot
6 TCLSH = TCLLIBPATH="." tclsh8.5
8 all: scripts
10 scripts: scripts-stamp
12 scripts-stamp: scripts/*.itk scripts/*.itcl
13 ./make_tclIndex.tcl
14 touch scripts-stamp
16 install: all
17 install -d $(MYDESTDIR)
18 install -d $(MYDESTDIR)/scripts
19 install -d $(MYDESTDIR)/scripts/images
20 install -d $(MYDESTDIR)/tools
21 install --mode 644 pkgIndex.tcl $(MYDESTDIR)
22 install --mode 644 init.tcl $(MYDESTDIR)
23 install --mode 644 scripts/*.itk $(MYDESTDIR)/scripts
24 install --mode 644 scripts/*.itcl $(MYDESTDIR)/scripts
25 install --mode 644 scripts/tclIndex $(MYDESTDIR)/scripts
26 -install --mode 644 scripts/images/*.gif $(MYDESTDIR)/scripts/images
27 -install --mode 644 scripts/images/*.xbm $(MYDESTDIR)/scripts/images
29 teapot: all
30 install -d teapot
31 -rm -f teapot/*
32 teapot-pkg generate --output teapot --type zip .
34 install-teapot: teapot
35 teapot-admin add $(TEAPOT) teapot/*.zip
37 refresh-teapot: teapot
38 teacup remove TLC
39 teacup install teapot/*
41 force-refresh-teapot: teapot
42 teacup remove TLC
43 teacup install --force --timeout 1 teapot/*-TLC-*
45 uninstall:
46 -rm -rf $(MYDESTDIR)
48 test: all
49 $(TCLSH) tests/all.tcl $(TESTFLAGS)
51 clean:
52 -rm -rf scripts/tclIndex scripts-stamp teapot