diff options
Diffstat (limited to 'libjava/classpath/lib/Makefile.gcj')
-rw-r--r-- | libjava/classpath/lib/Makefile.gcj | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/classpath/lib/Makefile.gcj b/libjava/classpath/lib/Makefile.gcj index a9d520c73c5..7bac691e8eb 100644 --- a/libjava/classpath/lib/Makefile.gcj +++ b/libjava/classpath/lib/Makefile.gcj @@ -17,6 +17,11 @@ all_deps_files := $(all_list_files:.list=.deps) all: $(all_stamp_files) +# Ensure this is rebuilt whenever the list of classes changes. +# The list will always exist when this Makefile is used. +Makefile.deps: classes + $(SHELL) $(top_srcdir)/lib/split-for-gcj.sh + -include Makefile.deps $(all_deps_files) ## Like GCJ but include some common flags. @@ -28,5 +33,5 @@ GCJF = $(GCJ) -Wno-deprecated --encoding=UTF-8 \ # make the target be the stamp file. This ensures that if a needed # source is changed, this rule is re-run for the appropriate package. %.stamp: %.list - $(GCJF) -MD -MF ${@:.stamp=.deps} -MT $@ @$< + $(GCJF) -MD -MF ${@:.stamp=.deps} -MT $@ -MP @$< echo timestamp > $@ |