X-Git-Url: http://nitlanguage.org?ds=sidebyside diff --git a/Makefile b/Makefile index e7cae2b..5029f2a 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -NITCOPT= contrib_dir = ./contrib examples_dir = ./examples -all_contribs = $(dir $(contrib_dir)/*/Makefile) +all_contribs = $(dir $(wildcard $(contrib_dir)/*/Makefile)) # Additional program directories (contrib and examples) that are buildable extras = $(filter-out $(contrib_dir)/nitc/,$(all_contribs)) -extras += $(dir $(examples_dir)/*/Makefile) +extras += $(dir $(wildcard $(examples_dir)/*/Makefile)) all: tools man @echo "" @@ -30,10 +29,13 @@ all: tools man @echo "To configure your shell environment, execute the following command:" @echo " source misc/nit_env.sh install" +more: + cd src; make more + # Compile all programs in `contrib`, `examples` and `src`. # # Furthermore, build the toolchain’s `man` pages. -full: all +full: all more for directory in $(extras); do \ (cd "$${directory}" && $(MAKE)) || exit 1; \ done