7 |
all_list_files := $(shell echo lists/*.list) |
all_list_files := $(shell echo lists/*.list) |
8 |
# The corresponding stamp files. |
# The corresponding stamp files. |
9 |
# Each .class file depends on its package's stamp file. |
# Each .class file depends on its package's stamp file. |
|
# Each list file depends on the java files in its package. |
|
10 |
# Each stamp file depends on the corresponding list file. |
# Each stamp file depends on the corresponding list file. |
11 |
|
# Each list file depends on the java files in its package. |
12 |
# This way touching a single java source will cause the minimum |
# This way touching a single java source will cause the minimum |
13 |
# number of rebuilds. |
# number of rebuilds. |
14 |
all_stamp_files := $(all_list_files:.list=.stamp) |
all_stamp_files := $(all_list_files:.list=.stamp) |
24 |
--bootclasspath '' --classpath $(compile_classpath) \ |
--bootclasspath '' --classpath $(compile_classpath) \ |
25 |
-C -d . |
-C -d . |
26 |
|
|
27 |
# Rule to rebuild a stamp file and update the deps file. |
# Rule to rebuild a stamp file and update the deps file. Note that we |
28 |
|
# make the target be the stamp file. This ensures that if a needed |
29 |
|
# source is changed, this rule is re-run for the appropriate package. |
30 |
%.stamp: %.list |
%.stamp: %.list |
31 |
$(GCJF) -MD -MF ${@:.stamp=.deps} @$< |
$(GCJF) -MD -MF ${@:.stamp=.deps} -MT $@ @$< |
32 |
echo timestamp > $@ |
echo timestamp > $@ |