summaryrefslogtreecommitdiff
path: root/coreconf/rules.mk
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:32:03 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:32:03 +0000
commitc5b8b3ab315f6b402aec5d71de84f35c545faa47 (patch)
treee51327f320600cb647f5b69aaa36605e274b8c0b /coreconf/rules.mk
parent2716dce086b19c5523a4e66caebaa03073bc8ed3 (diff)
downloadnss-hg-c5b8b3ab315f6b402aec5d71de84f35c545faa47.tar.gz
Bug 1438431 Remove mkdepend tool and targets r=rrelyea
Differential Revision: https://phabricator.services.mozilla.com/D70988
Diffstat (limited to 'coreconf/rules.mk')
-rw-r--r--coreconf/rules.mk77
1 files changed, 0 insertions, 77 deletions
diff --git a/coreconf/rules.mk b/coreconf/rules.mk
index df2116750..fbcf001e3 100644
--- a/coreconf/rules.mk
+++ b/coreconf/rules.mk
@@ -420,83 +420,6 @@ endif
# release_export rule
$(eval $(call copy_varlist_into_dir_RULE,release_export,EXPORTS,$(SOURCE_RELEASE_XP_DIR)/include))
-
-################################################################################
-
-ifeq ($(MAKECMDGOALS),clean)
--include $(DEPENDENCIES)
-
-ifneq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
-# Can't use sed because of its 4000-char line length limit, so resort to perl
-PERL_DEPENDENCIES_PROGRAM = \
- open(MD, "< $(DEPENDENCIES)"); \
- while (<MD>) { \
- if (m@ \.*/*$< @) { \
- $$found = 1; \
- last; \
- } \
- } \
- if ($$found) { \
- print "Removing stale dependency $< from $(DEPENDENCIES)\n"; \
- seek(MD, 0, 0); \
- $$tmpname = "$(OBJDIR)/fix.md" . $$$$; \
- open(TMD, "> " . $$tmpname); \
- while (<MD>) { \
- s@ \.*/*$< @ @; \
- if (!print TMD "$$_") { \
- unlink(($$tmpname)); \
- exit(1); \
- } \
- } \
- close(TMD); \
- if (!rename($$tmpname, "$(DEPENDENCIES)")) { \
- unlink(($$tmpname)); \
- } \
- } elsif ("$<" ne "$(DEPENDENCIES)") { \
- print "$(MAKE): *** No rule to make target $<. Stop.\n"; \
- exit(1); \
- }
-
-.DEFAULT:
- @$(PERL) -e '$(PERL_DEPENDENCIES_PROGRAM)'
-endif
-
-#############################################################################
-# X dependency system
-#############################################################################
-
-ifdef MKDEPENDENCIES
-
-# For Windows, $(MKDEPENDENCIES) must be -included before including rules.mk
-
-$(MKDEPENDENCIES):
- @$(MAKE_OBJDIR)
- touch $(MKDEPENDENCIES)
- chmod u+w $(MKDEPENDENCIES)
-#on NT, the preceding touch command creates a read-only file !?!?!
-#which is why we have to explicitly chmod it.
- $(MKDEPEND) -p$(OBJDIR_NAME)/ -o'$(OBJ_SUFFIX)' -f$(MKDEPENDENCIES) \
-$(NOMD_CFLAGS) $(YOPT) $(CSRCS) $(CPPSRCS) $(ASFILES)
-
-$(MKDEPEND): $(MKDEPEND_DIR)/*.c $(MKDEPEND_DIR)/*.h
- $(MAKE) -C $(MKDEPEND_DIR)
-
-ifdef OBJS
-depend: $(DIRS) $(MKDEPEND) $(MKDEPENDENCIES)
-else
-depend: $(DIRS)
-endif
-
-dependclean: $(DIRS)
- rm -f $(MKDEPENDENCIES)
-
-#-include $(NSINSTALL_DIR)/$(OBJDIR)/depend.mk
-
-else
-depend:
-endif
-endif
-
#
# HACK ALERT
#