From c4fd4718772953b4064ac4dea760ce28102d1f7b Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 6 May 2011 12:17:46 +0200 Subject: [PATCH] Added new section in the Makefile to handle pkgutils-cross in CLFS --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3bc0720..1a17dd5 100644 --- 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 && \ -- 2.26.2