From: Leandro Lucarella Date: Fri, 18 Sep 2009 18:28:22 +0000 (-0300) Subject: Use symbolic names in Makefiles default goals X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/23fbed21c284d6c286f019f0d68e1e0d2c4b2906 Use symbolic names in Makefiles default goals --- diff --git a/lib1/Makefile b/lib1/Makefile index fe10532..67f18f8 100644 --- a/lib1/Makefile +++ b/lib1/Makefile @@ -2,9 +2,9 @@ # Top-level directory T := .. +# Default goal for building this directory +.DEFAULT_GOAL := lib1 + # Include the top-level build include $T/Toplevel.mak -# Default goal for building this directory -.DEFAULT_GOAL := $L/liblib1.so - diff --git a/lib2/Makefile b/lib2/Makefile index 99f8aad..0692b13 100644 --- a/lib2/Makefile +++ b/lib2/Makefile @@ -2,9 +2,9 @@ # Top-level directory T := .. +# Default goal for building this directory +.DEFAULT_GOAL := lib2 + # Include the top-level build include $T/Toplevel.mak -# Default goal for building this directory -.DEFAULT_GOAL := $L/liblib2.so - diff --git a/subproj/Config.mak b/subproj/Config.mak index 61e3900..dc4e4b4 100644 --- a/subproj/Config.mak +++ b/subproj/Config.mak @@ -2,9 +2,9 @@ # Use the container project top-level directory as ours T := .. -# Include the "parent" project configuration -sinclude $T/Config.mak - # Define the default goal when doing make in this directory .DEFAULT_GOAL := otherproj +# Include the "parent" project configuration +sinclude $T/Config.mak +