aboutsummaryrefslogtreecommitdiffstats
path: root/oldXMenu
diff options
context:
space:
mode:
authorPaul Eggert2017-03-21 09:59:10 -0700
committerPaul Eggert2017-03-21 09:59:31 -0700
commitbf8cf95d7d13ebc5d351cc2a8048f6695ab9faca (patch)
tree1aa66a743bb6b542c2764e4c77979ede678d6881 /oldXMenu
parent14d8b6858a49e97f9b69593df5a8a7886430d43f (diff)
downloademacs-bf8cf95d7d13ebc5d351cc2a8048f6695ab9faca.tar.gz
emacs-bf8cf95d7d13ebc5d351cc2a8048f6695ab9faca.zip
Streamline dependency-file generation
* configure.ac (AUTODEPEND_PARENTS): New var. mkdir the dependency directories here, to simplify ‘make’. Remove dependency files just before outputting Makefiles, so that they are preserved if ‘configure’ exits early due to some other problem. * lib/Makefile.in, lwlib/Makefile.in, oldXMenu/Makefile.in: * src/Makefile.in: Adjust deps strategies to be similar, as follows: (MKDEPDIR): Remove. All uses removed. This cuts down on the number of processes spun off by ‘make’. (clean mostlyclean): Remove $(DEPDIR) contents, not $(DEPDIR) itself. (distclean): Remove $(DEPDIR) itself. * lwlib/Makefile.in (all): Move to front, so that depdir includes do not alter default action.
Diffstat (limited to 'oldXMenu')
-rw-r--r--oldXMenu/Makefile.in22
1 files changed, 7 insertions, 15 deletions
diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in
index 46061ab7ae4..7a5c9985920 100644
--- a/oldXMenu/Makefile.in
+++ b/oldXMenu/Makefile.in
@@ -111,15 +111,14 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111am__v_at_0 = @ 111am__v_at_0 = @
112am__v_at_1 = 112am__v_at_1 =
113 113
114DEPDIR = deps
115AUTO_DEPEND = @AUTO_DEPEND@ 114AUTO_DEPEND = @AUTO_DEPEND@
116 115DEPDIR = deps
117ifeq ($(AUTO_DEPEND),yes) 116ifeq ($(AUTO_DEPEND),yes)
118DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP 117 DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP
119MKDEPDIR = ${MKDIR_P} ${DEPDIR} 118 -include $(ALLOBJS:%.o=$(DEPDIR)/%.d)
120else 119else
121DEPFLAGS = 120 DEPFLAGS =
122MKDEPDIR = : 121 include $(srcdir)/deps.mk
123endif 122endif
124 123
125ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ 124ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
@@ -129,7 +128,6 @@ ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
129 -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib 128 -I../src -I../lib -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
130 129
131.c.o: 130.c.o:
132 @$(MKDEPDIR)
133 $(AM_V_CC)$(CC) -c ${ALL_CFLAGS} $< 131 $(AM_V_CC)$(CC) -c ${ALL_CFLAGS} $<
134 132
135libXMenu11.a: $(OBJS) $(EXTRA) 133libXMenu11.a: $(OBJS) $(EXTRA)
@@ -137,20 +135,14 @@ libXMenu11.a: $(OBJS) $(EXTRA)
137 $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) 135 $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA)
138 $(AM_V_at)$(RANLIB) $@ 136 $(AM_V_at)$(RANLIB) $@
139 137
140ifeq ($(AUTO_DEPEND),yes)
141-include $(ALLOBJS:%.o=${DEPDIR}/%.d)
142else
143include $(srcdir)/deps.mk
144endif
145
146.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean 138.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
147 139
148clean mostlyclean: 140clean mostlyclean:
149 rm -f libXMenu11.a *.o 141 rm -f libXMenu11.a *.o $(DEPDIR)/*
150 -rm -rf ${DEPDIR}
151 142
152bootstrap-clean maintainer-clean distclean: clean 143bootstrap-clean maintainer-clean distclean: clean
153 rm -f Makefile 144 rm -f Makefile
145 rm -fr $(DEPDIR)
154 146
155ETAGS = ../lib-src/etags${EXEEXT} 147ETAGS = ../lib-src/etags${EXEEXT}
156 148