]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/m4
Cleanup toolchain scripts
[ipfire-2.x.git] / lfs / m4
diff --git a/lfs/m4 b/lfs/m4
index 5bb8604442527f52b045183cc6ccfd6390658aa7..7d624d98513e86dee72c35f286af2bca9a9492c5 100644 (file)
--- a/lfs/m4
+++ b/lfs/m4
@@ -35,12 +35,8 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 #
 ifeq "$(ROOT)" ""
   TARGET = $(DIR_INFO)/$(THISAPP)
-  EXTRA_CONFIG = --prefix=/usr
-  EXTRA_MAKE =
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
-  EXTRA_CONFIG = --prefix=$(TOOLS_DIR)
-  EXTRA_MAKE =
 endif
 
 ###############################################################################
@@ -81,8 +77,8 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
-       cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
+       cd $(DIR_APP) && ./configure --prefix=$(PREFIX)
+       cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)