Browse Source

Move the 'all' target below the generic redirect target. GNU make allows only

one recipe to be specified per target. When multiple recipes are defined for
the same target, only the last one will be executed.
This change makes executing the 'all' target in the controller/ or
controller/block/ directory actually only build files inside these directories
instead of starting a full build at the top level directory.

Making 'clean' in either of these directories still cleans the entire build
starting from the top level directory. I think this eventually deserves a
second commit. I would like to be able to only 'clean' a subdirectory.

	modified:   controller/Makefile
	modified:   controller/block/Makefile
beaglebone
Daan Vreeken 7 years ago
parent
commit
0d9a073654
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      controller/Makefile
  2. +3
    -3
      controller/block/Makefile

+ 3
- 3
controller/Makefile View File

@ -1,7 +1,7 @@
all:
@$(MAKE) --no-print-directory -C .. targets_controller
$(MAKECMDGOALS):
@$(MAKE) --no-print-directory -C .. $(MAKECMDGOALS)
all:
@$(MAKE) --no-print-directory -C .. targets_controller
.PHONY: test

+ 3
- 3
controller/block/Makefile View File

@ -1,5 +1,5 @@
all:
@$(MAKE) --no-print-directory -C ../.. targets_controller/block
$(MAKECMDGOALS):
@$(MAKE) --no-print-directory -C ../.. $(MAKECMDGOALS)
all:
@$(MAKE) --no-print-directory -C ../.. targets_controller/block

Loading…
Cancel
Save