1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: targetfile

targetfile: subproject/targetfile intermediatefile
    somecommand1

intermediatefile: sourcefile1 resourcesobj
    somecommand2

resourcesobj: sourcefile2 patchedsubprojectfile
    somecommand3

patchedsubprojectfile: subproject/targetfile
    somecommand4

subproject/targetfile: subprojectphony

subprojectphony:
    @$(MAKE) -C subproject

.PHONY: all subprojectphony