Quieter build
This commit is contained in:
parent
ddcfa5b1b2
commit
a125975737
6 changed files with 124 additions and 8 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Most of this is so that you can do
|
||||
# $ make all
|
||||
# and kick off a recursive make
|
||||
# Also, "make src/all" turns into "make -C src all"
|
||||
|
||||
SUBDIRS = src \
|
||||
lib
|
||||
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
%:
|
||||
+for dir in $(SUBDIRS); do $(MAKE) -C $${dir} $@; done
|
||||
|
||||
define SUBDIR_TEMPLATE
|
||||
$(1)/%:
|
||||
$$(MAKE) -C $(1) $$*
|
||||
endef
|
||||
|
||||
$(foreach dir,$(SUBDIRS),$(eval $(call SUBDIR_TEMPLATE,$(dir))))
|
||||
|
||||
#.DEFAULT:
|
||||
# $(if $(findstring ./,$(dir $@)),$(error No rule to make target `$@'),$(MAKE) -C $(dir $@) $(notdir $@))
|
||||
Loading…
Add table
Add a link
Reference in a new issue