# 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 ""
@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