[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 3/3] build: `print-libs`, `print-objs`, `print-srcs` depend on configuration



Let the installation of the Make targets `print-libs`, `print-objs`,
and `print-srcs` depend on a successfully loaded
configuration (`.config` file).

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 880bdde..f4a9e8f 100644
--- a/Makefile
+++ b/Makefile
@@ -554,7 +554,7 @@ clean: menuconfig
 
 endif
 
-.PHONY: print-vars print-libs help outputmakefile list-defconfigs
+.PHONY: print-vars print-libs print-objs print-srcs help outputmakefile 
list-defconfigs
 
 # Configuration
 # ---------------------------------------------------------------------------
@@ -699,7 +699,7 @@ print-vars:
 print-version:
        @echo $(UK_FULLVERSION)
 
-print-libs:
+print-libs: menuconfig
        @echo   $(foreach P,$(UK_PLATS) $(UK_PLATS-y),\
                $(if $(call qstrip,$($(call uc,$(P))_LIBS) $($(call 
uc,$(P))_LIBS-y)),\
                $(foreach L,$($(call uc,$(P))_LIBS) $($(call uc,$(P))_LIBS-y), \
@@ -708,7 +708,7 @@ print-libs:
                )))) \
                $(UK_LIBS) $(UK_LIBS-y)
 
-print-objs:
+print-objs: menuconfig
        @echo -e \
                $(foreach P,$(UK_PLATS) $(UK_PLATS-y),\
                $(if $(call qstrip,$($(call uc,$(P))_LIBS) $($(call 
uc,$(P))_LIBS-y)),\
@@ -721,7 +721,7 @@ print-objs:
                '$(L):\n   $($(call vprefix_lib,$(L),OBJS)) $($(call 
vprefix_lib,$(L),OBJS-y))\n'\
                ))
 
-print-srcs:
+print-srcs: menuconfig
        @echo -e \
                $(foreach P,$(UK_PLATS) $(UK_PLATS-y),\
                $(if $(call qstrip,$($(call uc,$(P))_LIBS) $($(call 
uc,$(P))_LIBS-y)),\
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.