]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/ncurses
Cleanup toolchain scripts
[ipfire-2.x.git] / lfs / ncurses
index 1d8fd40d2181e0da29b9e42f514833686628cabd..09efd733e9da167f5a12fdbe2a47836ac95ad25e 100644 (file)
@@ -31,14 +31,12 @@ DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
-# Normal build or /tools build.
+# Normal build or $(TOOLS_DIR) build.
 #
 ifeq "$(ROOT)" ""
   TARGET = $(DIR_INFO)/$(THISAPP)
-  PREFIX = /usr
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools
-  PREFIX = /tools
   EXTRA_CONFIG = --build=$(BUILDTARGET)
 endif
 
@@ -94,7 +92,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
        # Create pkgconfig dir in toolchain
 ifneq "$(ROOT)" ""
-       mkdir -pv /tools/lib/pkgconfig/
+       mkdir -pv $(TOOLS_DIR)/lib/pkgconfig/
 endif
        cd $(DIR_APP) && CPPFLAGS=-P ./configure $(EXTRA_CONFIG)
        cd $(DIR_APP) && make $(MAKETUNING)