CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added new section in the Makefile to handle pkgutils-cross in CLFS
[toolchain-softfp.git] / Makefile
index 3bc07200eda1d92e426229bbc504b17151ceaf4f..1a17dd5317cd5d8a9e2534ee4be27dd4fb403e31 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ include vars.mk
 
 .PHONY: all clean distclean
 
-all: linux-headers libgmp libmpfr libmpc binutils gcc-static glibc gcc-final test
+all: linux-headers libgmp libmpfr libmpc binutils gcc-static glibc gcc-final setup test
 
 clean: linux-headers-clean libgmp-clean libmpfr-clean libmpc-clean binutils-clean gcc-static-clean glibc-clean gcc-final-clean test-clean
 
@@ -272,6 +272,13 @@ gcc-final-distclean: gcc-final-clean
        rm -vf $(WORK)/gcc-$(GCC_VERSION).tar.bz2
 
 
+# SETUP FOR PKGUTILS
+$(CLFS)/var/lib/pkg/db:
+       install -d -m 0755 $(CLFS)/var/lib/pkg
+       touch $(CLFS)/var/lib/pkg/db
+
+setup: $(CLFS)/var/lib/pkg/db
+
 # TEST THE TOOLCHAIN
 $(WORK)/test: $(WORK)/test.c
        export PATH=$$PATH:$(CROSSTOOLS)/bin && \