-MD depend: Putting objects on PHONY target didn't work. Use 'FORCE' dependency instead.

This commit is contained in:
slamm%netscape.com 1999-03-09 21:56:44 +00:00
Родитель 82fafc4b8c
Коммит aa1f6565e9
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -70,7 +70,9 @@ foreach $deps (@alldeps) {
}
if ($dep_mtime eq '' or $dep_mtime > $mtime) {
print "$obj ";
$haveObjects = 1;
last;
}
}
}
print ": FORCE\n" if $haveObjects;

Просмотреть файл

@ -973,7 +973,8 @@ MDDEPEND_FILES := $(foreach obj, $(OBJS), \
MDDEPEND_FILES := $(wildcard $(MDDEPEND_FILES))
ifdef MDDEPEND_FILES
# Get the list of objects to force.
MDDEPEND_FORCE := $(shell $(PERL) $(topsrcdir)/config/mddepend.pl $(MDDEPEND_FILES))
MDDEPEND_FORCE := $(shell $(PERL) $(topsrcdir)/config/mddepend.pl $(MDDEPEND_FILES) > $(OBJDIR)/.deps/.all.pp)
-include $(OBJDIR)/.deps/.all.pp
# (MDDEPEND_FORCE gets added to the PHONY target).
endif
#endif
@ -1021,7 +1022,10 @@ endif
# Fake targets. Always run these rules, even if a file/directory with that
# name already exists.
#
.PHONY: all all_platforms alltags boot checkout clean clobber clobber_all export install libs realclean run_viewer run_apprunner $(OBJDIR) $(DIRS) $(MDDEPEND_FORCE)
.PHONY: all all_platforms alltags boot checkout clean clobber clobber_all export install libs realclean run_viewer run_apprunner $(OBJDIR) $(DIRS) FORCE
# Used as a dependency to force targets to rebuild
FORCE:
envirocheck::
@echo -----------------------------------