diff options
| author | Glenn Morris | 2015-05-15 20:51:45 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-15 20:51:45 -0400 |
| commit | 48e384d7104dce8219b169c55a29c9f85024c83f (patch) | |
| tree | 4b1e1cae593af4c1253af05172b23c05a3b63096 /oldXMenu | |
| parent | c7e93c41078193d4df8ca165d3aea50a51c40519 (diff) | |
| download | emacs-48e384d7104dce8219b169c55a29c9f85024c83f.tar.gz emacs-48e384d7104dce8219b169c55a29c9f85024c83f.zip | |
Replace AC_SUBST_FILE in configure with include in Makefiles.
* configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
(oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
(AUTO_DEPEND): New output variable.
* lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lwlib_deps_frag): Replace by conditional include.
* lwlib/autodeps.mk: Remove file.
* oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(oldxmenu_deps_frag): Replace by conditional include.
* oldXMenu/autodeps.mk: Remove file.
* src/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lisp_frag): Replace by an include.
(deps_frag): Replace by conditional include.
* src/autodeps.mk: Remove file.
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Makefile.in | 20 | ||||
| -rw-r--r-- | oldXMenu/autodeps.mk | 5 | ||||
| -rw-r--r-- | oldXMenu/deps.mk | 2 |
3 files changed, 15 insertions, 12 deletions
diff --git a/oldXMenu/Makefile.in b/oldXMenu/Makefile.in index ef2a3600a6b..de5b8e1114c 100644 --- a/oldXMenu/Makefile.in +++ b/oldXMenu/Makefile.in | |||
| @@ -112,10 +112,15 @@ am__v_at_0 = @ | |||
| 112 | am__v_at_1 = | 112 | am__v_at_1 = |
| 113 | 113 | ||
| 114 | DEPDIR = deps | 114 | DEPDIR = deps |
| 115 | ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. | 115 | AUTO_DEPEND = @AUTO_DEPEND@ |
| 116 | DEPFLAGS = @DEPFLAGS@ | 116 | |
| 117 | ## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. | 117 | ifeq ($(AUTO_DEPEND),yes) |
| 118 | MKDEPDIR = @MKDEPDIR@ | 118 | DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP |
| 119 | MKDEPDIR = ${MKDIR_P} ${DEPDIR} | ||
| 120 | else | ||
| 121 | DEPFLAGS = | ||
| 122 | MKDEPDIR = : | ||
| 123 | endif | ||
| 119 | 124 | ||
| 120 | ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ | 125 | ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ |
| 121 | $(C_SWITCH_X_SITE) $(DEPFLAGS) \ | 126 | $(C_SWITCH_X_SITE) $(DEPFLAGS) \ |
| @@ -132,8 +137,11 @@ libXMenu11.a: $(OBJS) $(EXTRA) | |||
| 132 | $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) | 137 | $(AM_V_at)$(AR) $(ARFLAGS) $@ $(OBJS) $(EXTRA) |
| 133 | $(AM_V_at)$(RANLIB) $@ | 138 | $(AM_V_at)$(RANLIB) $@ |
| 134 | 139 | ||
| 135 | ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. | 140 | ifeq ($(AUTO_DEPEND),yes) |
| 136 | @oldxmenu_deps_frag@ | 141 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) |
| 142 | else | ||
| 143 | include $(srcdir)/deps.mk | ||
| 144 | endif | ||
| 137 | 145 | ||
| 138 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 146 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 139 | 147 | ||
diff --git a/oldXMenu/autodeps.mk b/oldXMenu/autodeps.mk deleted file mode 100644 index f7109295ce2..00000000000 --- a/oldXMenu/autodeps.mk +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | ### autodeps.mk --- lwlib/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | ## This is inserted in lwlib/Makefile if AUTO_DEPEND=yes. | ||
| 4 | |||
| 5 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) | ||
diff --git a/oldXMenu/deps.mk b/oldXMenu/deps.mk index cdb89f9ead9..54ce3587574 100644 --- a/oldXMenu/deps.mk +++ b/oldXMenu/deps.mk | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | ### Commentary: | 33 | ### Commentary: |
| 34 | 34 | ||
| 35 | ## This file is inserted in oldXMenu/Makefile if AUTO_DEPEND=no. | 35 | ## This file is included in oldXMenu/Makefile if AUTO_DEPEND=no. |
| 36 | ## It defines static dependencies between the various source files. | 36 | ## It defines static dependencies between the various source files. |
| 37 | 37 | ||
| 38 | ### Code: | 38 | ### Code: |