Diff

Differences From Artifact [f94f975092]:

To Artifact [5ca9d75cdf]:


1
2
3
4


5
6
7
8
9
10
11
TCLKIT = tclkit
TCLCONFIGPATH = $(DESTDIR)/usr/lib $(DESTDIR)/usr/lib64 $(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/lib64
TEAPOTCLIENTVERS = 0.1
TCLDIR = 



all:
	@echo 'Nothing to do.'

install:
	@echo TCLDIR="$(TCLDIR)"; \
	TCLDIR="$(TCLDIR)"; \




>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
TCLKIT = tclkit
TCLCONFIGPATH = $(DESTDIR)/usr/lib $(DESTDIR)/usr/lib64 $(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/lib64
TEAPOTCLIENTVERS = 0.1
TCLDIR = 
PREFIX = /usr/local
prefix = $(PREFIX)

all:
	@echo 'Nothing to do.'

install:
	@echo TCLDIR="$(TCLDIR)"; \
	TCLDIR="$(TCLDIR)"; \
23
24
25
26
27
28
29


30
31
32
33
34
35
36
	test -n "$${TCLDIR}" || (echo Unable to locate tclConfig.sh.  Try specifying TCLDIR.; exit 1) || exit 1; \
	if test ! -e "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; then \
		echo mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; \
		mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)" || exit 1; \
	fi; \
	echo cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/"; \
	cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/" || exit 1



teapot-client.kit: teapot-client.tcl lib/teapotclient0.1/pkgIndex.tcl lib/teapotclient0.1/teapotclient.tcl
	rm -rf teapot-client-tmp.vfs
	mkdir teapot-client-tmp.vfs
	cp -r lib teapot-client.tcl teapot-client-tmp.vfs/
	echo 'package require starkit' > teapot-client-tmp.vfs/main.tcl
	echo 'starkit::startup' >> teapot-client-tmp.vfs/main.tcl







>
>







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	test -n "$${TCLDIR}" || (echo Unable to locate tclConfig.sh.  Try specifying TCLDIR.; exit 1) || exit 1; \
	if test ! -e "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; then \
		echo mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; \
		mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)" || exit 1; \
	fi; \
	echo cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/"; \
	cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/" || exit 1
	cp teapot-client.tcl "$(DESTDIR)$(prefix)/bin/teapot-client"
	chmod 755 "$(DESTDIR)$(prefix)/bin/teapot-client"

teapot-client.kit: teapot-client.tcl lib/teapotclient0.1/pkgIndex.tcl lib/teapotclient0.1/teapotclient.tcl
	rm -rf teapot-client-tmp.vfs
	mkdir teapot-client-tmp.vfs
	cp -r lib teapot-client.tcl teapot-client-tmp.vfs/
	echo 'package require starkit' > teapot-client-tmp.vfs/main.tcl
	echo 'starkit::startup' >> teapot-client-tmp.vfs/main.tcl