]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/tcl
Updated usb_modeswitch (1.1.3).
[people/pmueller/ipfire-2.x.git] / lfs / tcl
diff --git a/lfs/tcl b/lfs/tcl
index 6b1e7cf8f64a5f784eee48c117e8d8694180e70f..a62b4e6b052101953bad19b923a46e70ba27ef99 100644 (file)
--- a/lfs/tcl
+++ b/lfs/tcl
@@ -30,7 +30,12 @@ THISAPP    = tcl$(VER)
 DL_FILE    = $(THISAPP)-src.tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
+
+ifeq "$(LFS_PASS)" "toolchain"
 TARGET     = $(DIR_INFO)/$(THISAPP)-tools
+else
+TARGET     = $(DIR_INFO)/$(THISAPP)
+endif
 
 ###############################################################################
 # Top-level Rules
@@ -70,10 +75,18 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ifeq "$(LFS_PASS)" "toolchain"
        cd $(DIR_APP)/unix && ./configure --prefix=/tools --disable-nls
+else
+       cd $(DIR_APP)/unix && ./configure --prefix=/usr --disable-nls
+endif
        cd $(DIR_APP)/unix && make $(MAKETUNING)
        cd $(DIR_APP)/unix && make install
+ifeq "$(LFS_PASS)" "toolchain"
        cd $(DIR_APP)/unix && make install-private-headers
        ln -sf tclsh8.4 /tools/bin/tclsh
+else
+       ln -sf tclsh8.4 /usr/bin/tclsh
+endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)