blob: e842f0f4b671385165b23186dafb0fe68d4f1054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# file : BuildRules/Recursion.post.rules
# author : Boris Kolpackov <boris@kolpackov.net>
# copyright : Copyright (c) 2002-2003 Boris Kolpackov
# license : http://kolpackov.net/license.html
.PHONY: $(target_directory_list) $(target_makefile_list)
_submodules:: $(target_directory_list) $(target_makefile_list)
ifneq ($(strip $(target_directory_list)),)
$(target_directory_list):
$(MAKE) -C $@ -f $(default_makefile_name) $(MAKECMDGOALS)
endif
ifneq ($(strip $(target_makefile_list)),)
$(target_makefile_list):
$(MAKE) --no-print-directory -f $@ $(MAKECMDGOALS)
endif
# These rules keep make from trying to use the match-anything rule below to
# rebuild the makefiles.
#
ifneq ($(strip $(default_makefile_name)),)
$(default_makefile_name) : ;
endif
%.mk :: ;
%.rules :: ;
# Anything we don't know how to build will use this rule. The command is a
# do-nothing command, but the prerequisites ensure that the appropriate
# recursive invocations of make will occur.
#
% :: $(target_directory_list) $(target_makefile_list) ;
# $Id$
|