Check-in [3ae29b0fdc]
Overview
Comment:Added install target
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3ae29b0fdc2a4d598cac73b625c7c72862f467ef
User & Date: rkeene on 2009-04-18 21:22:42
Other Links: manifest | tags
Context
2009-04-18
22:14
Updated teapotclient to not require specifying "Tcl Tk" in the existing extensions parameter of download_extensions. Changed default download directory to not include "lib" of teapotclient, but left this behaviour in the "teapot-client.tcl" script Added examples check-in: 68f9c46716 user: rkeene tags: trunk
21:22
Added install target check-in: 3ae29b0fdc user: rkeene tags: trunk
04:00
Updated teapot-client to (possibly...) work on Windows check-in: 847b413b81 user: rkeene tags: trunk
Changes

Modified client/Makefile from [262cfed075] to [d966da7815].

     1      1   TCLKIT = tclkit
            2  +TCLCONFIGPATH = $(DESTDIR)/usr/lib $(DESTDIR)/usr/lib64 $(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/lib64
            3  +TEAPOTCLIENTVERS = 0.1
            4  +TCLDIR = 
            5  +
            6  +all:
            7  +	@echo 'Nothing to do.'
     2      8   
     3         -all: teapot-client.kit
            9  +install:
           10  +	@echo TCLDIR="$(TCLDIR)"; \
           11  +	TCLDIR="$(TCLDIR)"; \
           12  +	if test -z "$${TCLDIR}"; then \
           13  +		for dir in $(TCLCONFIGPATH); do \
           14  +			if test -f "$${dir}/tclConfig.sh"; then \
           15  +				echo source "$${dir}/tclConfig.sh"; \
           16  +				source "$${dir}/tclConfig.sh"; \
           17  +				echo TCLDIR="$${TCL_PACKAGE_PATH}"; \
           18  +				TCLDIR="$${TCL_PACKAGE_PATH}"; \
           19  +				break; \
           20  +			fi; \
           21  +		done; \
           22  +	fi; \
           23  +	test -n "$${TCLDIR}" || (echo Unable to locate tclConfig.sh.  Try specifying TCLDIR.; exit 1) || exit 1; \
           24  +	if test ! -e "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; then \
           25  +		echo mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)"; \
           26  +		mkdir -p "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)" || exit 1; \
           27  +	fi; \
           28  +	echo cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/"; \
           29  +	cp "lib/teapotclient$(TEAPOTCLIENTVERS)"/*.tcl "$(DESTDIR)$${TCLDIR}/teapotclient$(TEAPOTCLIENTVERS)/" || exit 1
     4     30   
     5     31   teapot-client.kit: teapot-client.tcl lib/teapotclient0.1/pkgIndex.tcl lib/teapotclient0.1/teapotclient.tcl
     6     32   	rm -rf teapot-client-tmp.vfs
     7     33   	mkdir teapot-client-tmp.vfs
     8     34   	cp -r lib teapot-client.tcl teapot-client-tmp.vfs/
     9     35   	echo 'package require starkit' > teapot-client-tmp.vfs/main.tcl
    10     36   	echo 'starkit::startup' >> teapot-client-tmp.vfs/main.tcl
................................................................................
    16     42   
    17     43   clean:
    18     44   	rm -f teapot-client.kit
    19     45   	rm -rf teapot-client-tmp.vfs
    20     46   
    21     47   distclean: clean
    22     48   
    23         -.PHONY: all clean distclean
           49  +.PHONY: all install clean distclean