Skip to content
Snippets Groups Projects
Commit 840c0f0a authored by René Kijewski's avatar René Kijewski
Browse files

make: detect their module name automatically

For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
parent 997dcd7e
No related branches found
No related tags found
No related merge requests found
MODULE = quad_math
include $(RIOTBASE)/Makefile.base
MODULE = random
include $(RIOTBASE)/Makefile.base
MODULE = shell
include $(RIOTBASE)/Makefile.base
MODULE = timex
include $(RIOTBASE)/Makefile.base
MODULE =transceiver
ifneq (,$(filter cc2420,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/sys/net/include
endif
......
MODULE = uart0
include $(RIOTBASE)/Makefile.base
MODULE =vtimer
include $(RIOTBASE)/Makefile.base
MODULE = tests-core
include $(RIOTBASE)/Makefile.base
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment