]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added file to toolchain.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Jun 2009 07:32:02 +0000 (09:32 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Jun 2009 07:32:02 +0000 (09:32 +0200)
lfs/file

index 1ca9844f232c2b4ea87a44d6fb41be687ea2a777..b51da945f3d95b029dced5b5ceadf7b4e122a5f0 100644 (file)
--- a/lfs/file
+++ b/lfs/file
@@ -66,7 +66,9 @@ info:
 
 install: $(OBJECT)
 
-package:
+packages: $(PACKAGES)
+
+$(PACKAGES): $(OBJECT)
        @$(DO_PACKAGE)
 
 $(objects):
@@ -79,6 +81,18 @@ $(objects):
 $(OBJECT): $(objects)
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "toolchain"
+       cd $(DIR_APP) && \
+               ./configure \
+                       $(CONFIGURE_ARCH) \
+                       --prefix=$(TOOLS_DIR) \
+                       --disable-static
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+       cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "base"
        cd $(DIR_APP) && \
                ./configure \
                        $(CONFIGURE_ARCH) \
@@ -88,6 +102,7 @@ $(OBJECT): $(objects)
        cd $(DIR_APP) && make install
 
        rm -vf /usr/lib/libmagic.la
+endif
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)