.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
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 && \