summaryrefslogtreecommitdiffstats
path: root/rules/tcl.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-01-03 17:59:40 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-04-06 19:13:19 +0200
commit8d46c6fb18a6926303c984898cf9381cd397b78a (patch)
treeb0196f62f10d4a3270cee494db63e4d27600e8a6 /rules/tcl.make
parentff8425daf601be113c3dc52c15dc89449b028c35 (diff)
downloadptxdist-8d46c6fb18a6926303c984898cf9381cd397b78a.tar.gz
ptxdist-8d46c6fb18a6926303c984898cf9381cd397b78a.tar.xz
[tcl] cleanup targetinstall
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/tcl.make')
-rw-r--r--rules/tcl.make31
1 files changed, 20 insertions, 11 deletions
diff --git a/rules/tcl.make b/rules/tcl.make
index 3ca1bd6a7..67e07d90d 100644
--- a/rules/tcl.make
+++ b/rules/tcl.make
@@ -75,6 +75,18 @@ endif
TCL_SUBDIR := unix
# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tcl.install:
+ @$(call targetinfo)
+ @$(call install, TCL)
+ @mkdir -p $(TCL_PKGDIR)/usr/share/tcl-tests
+ @cd $(TCL_DIR)/tests && \
+ install -m 644 * $(TCL_PKGDIR)/usr/share/tcl-tests/
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
@@ -132,11 +144,11 @@ ifdef PTXCONF_TCL_TESTING
# avoid a subdirectory hell. Install them where also the other scripts are
@$(call install_copy, tcl, 0, 0, 0644, \
- $(TCL_DIR)/library/opt/optparse.tcl, \
+ $(TCL_PKGDIR)/usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/opt0.4/optparse.tcl, \
/usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/optparse.tcl)
@$(call install_copy, tcl, 0, 0, 0644, \
- $(TCL_DIR)/library/opt/pkgIndex.tcl, \
+ $(TCL_PKGDIR)/usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/opt0.4/pkgIndex.tcl, \
/usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/pkgIndex.tcl)
endif
@@ -160,21 +172,18 @@ ifndef PTXCONF_TCL_TESTING
/usr/lib/tcl8.5/encoding/big5.enc)
else
# install all code pages
- @cd $(TCL_DIR)/library/encoding; \
+ @cd $(TCL_PKGDIR)/usr/lib/tcl8.5/encoding; \
for file in * ; do \
- $(call install_copy, tcl, 0, 0, 0644, \
- $(TCL_DIR)/library/encoding/$$file, \
+ $(call install_copy, tcl, 0, 0, 0644, -, \
/usr/lib/tcl8.5/encoding/$$file); \
- done
+ done
# copy all tests to the target
@$(call install_copy, tcl, 0, 0, 0755, /usr/share/tcl-tests)
- @cd $(TCL_DIR)/tests; \
+ @cd $(TCL_PKGDIR)/usr/share/tcl-tests && \
for file in * ; do \
- PER=`stat -c "%a" $$file` \
- $(call install_copy, tcl, 0, 0, $$PER, \
- $(TCL_DIR)/tests/$$file, \
+ $(call install_copy, tcl, 0, 0, 644, -, \
/usr/share/tcl-tests/$$file); \
- done
+ done
# unresolved tests:
# Test file error: EscapeToUtfProc: invalid sub table