2014-05-15 17:12:42 +02:00
|
|
|
ifeq (, $(__RIOTBUILD_FLAG))
|
|
|
|
all: welcome
|
|
|
|
@echo ""
|
|
|
|
@exit 1
|
|
|
|
else
|
|
|
|
all:
|
|
|
|
mkdir -p $(BINDIR)
|
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i || exit 1; done ;
|
|
|
|
endif
|
|
|
|
|
2013-12-22 20:02:59 +01:00
|
|
|
DIRS = $(RIOTCPU)/$(CPU) core drivers sys
|
2013-02-06 13:20:21 +01:00
|
|
|
|
2014-03-31 13:59:02 +02:00
|
|
|
ifneq (,$(filter embunit,$(USEMODULE)))
|
|
|
|
DIRS += tests/unittests/embunit/embUnit
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter embunit_textui,$(USEMODULE)))
|
|
|
|
DIRS += tests/unittests/embunit/textui
|
|
|
|
endif
|
|
|
|
|
2014-05-15 17:12:42 +02:00
|
|
|
.PHONY: all clean doc docclean welcome
|
2014-02-11 18:15:43 +01:00
|
|
|
|
2013-02-06 13:20:21 +01:00
|
|
|
clean:
|
2014-03-12 11:03:34 +01:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean || exit 1; done ;
|
2013-03-27 16:10:28 +01:00
|
|
|
-@if [ -d $(BINDIR) ] ; \
|
2013-05-24 15:13:31 +02:00
|
|
|
then rm -rf $(BINDIR) ; \
|
2014-02-11 18:15:43 +01:00
|
|
|
fi
|
2013-02-06 13:20:21 +01:00
|
|
|
|
2013-02-08 19:34:07 +01:00
|
|
|
doc:
|
2014-01-21 14:52:55 +01:00
|
|
|
"$(MAKE)" -BC doc/doxygen
|
2013-08-12 11:08:19 +02:00
|
|
|
|
2014-01-21 14:52:55 +01:00
|
|
|
docclean:
|
|
|
|
"$(MAKE)" -BC doc/doxygen clean
|
2014-05-15 17:12:42 +02:00
|
|
|
|
|
|
|
welcome:
|
|
|
|
@echo "Welcome to RIOT - The friendly OS for IoT!"
|
|
|
|
@echo ""
|
|
|
|
@echo "You executed 'make' from the base directory."
|
|
|
|
@echo "You should run 'make' in your application's directory instead."
|
|
|
|
@echo ""
|
|
|
|
@echo "Please see our Quick Start Guide at:"
|
|
|
|
@echo " https://github.com/RIOT-OS/RIOT/wiki/Quick-Start-Guide"
|
|
|
|
@echo "Or ask questions on our mailing list:"
|
|
|
|
@echo " users@riot-os.org (http://lists.riot-os.org/mailman/listinfo/users)"
|