diff options
| author | Paul Eggert | 2020-12-25 19:16:27 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-12-25 19:17:04 -0800 |
| commit | 60bfa84e41449020d1122a1d18b7c11cb73211f3 (patch) | |
| tree | 22e2a3fc2df1a819aeb66b9beafade3a5cb9f996 /lib/Makefile.in | |
| parent | a63855cd21aefee993b622241993043a31894c0c (diff) | |
| download | emacs-60bfa84e41449020d1122a1d18b7c11cb73211f3.tar.gz emacs-60bfa84e41449020d1122a1d18b7c11cb73211f3.zip | |
Fix issues with lib/malloc out-of-dir builds
Problem reported by Mattias EngdegÄrd in:
https://lists.gnu.org/r/emacs-devel/2020-12/msg01626.html
* configure.ac: If the scratch_buffer module is enabled, create
lib/malloc and (if doing dependencies) lib/deps/malloc.
* lib/Makefile.in (DEPFLAGS) [AUTO_DEPEND]: No longer any need to
squash lib dependencies into a single directory.
(clean): Also remove */*.o and $(DEPDIR)/*/*.d, to clean out
malloc/*.o and deps/malloc/*.d. Just remove *.d files in
dependencies so that rm does not complain about not being able to
remove deps/malloc.
(extraclean): Also remove malloc, if it is empty.
Diffstat (limited to 'lib/Makefile.in')
| -rw-r--r-- | lib/Makefile.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in index a280b7a3311..e6b1ae6a9ab 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in | |||
| @@ -67,7 +67,7 @@ endif | |||
| 67 | 67 | ||
| 68 | DEPDIR = deps | 68 | DEPDIR = deps |
| 69 | ifeq ($(AUTO_DEPEND),yes) | 69 | ifeq ($(AUTO_DEPEND),yes) |
| 70 | DEPFLAGS = -MMD -MF $(DEPDIR)/$(*F).d -MP | 70 | DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP |
| 71 | -include $(ALLOBJS:%.o=$(DEPDIR)/%.d) | 71 | -include $(ALLOBJS:%.o=$(DEPDIR)/%.d) |
| 72 | else | 72 | else |
| 73 | DEPFLAGS = | 73 | DEPFLAGS = |
| @@ -118,7 +118,7 @@ TAGS: $(ETAGS) $(tagsfiles) | |||
| 118 | .PHONY: $(ETAGS) tags | 118 | .PHONY: $(ETAGS) tags |
| 119 | 119 | ||
| 120 | clean: | 120 | clean: |
| 121 | rm -f ./*.[ao] ./*-t \#* $(DEPDIR)/* | 121 | rm -f ./*.[ao] ./*/*.o ./*-t \#* $(DEPDIR)/*.d $(DEPDIR)/*/*.d |
| 122 | mostlyclean: clean | 122 | mostlyclean: clean |
| 123 | rm -f $(filter-out %-t,$(MOSTLYCLEANFILES)) | 123 | rm -f $(filter-out %-t,$(MOSTLYCLEANFILES)) |
| 124 | distclean bootstrap-clean: mostlyclean | 124 | distclean bootstrap-clean: mostlyclean |
| @@ -127,7 +127,7 @@ distclean bootstrap-clean: mostlyclean | |||
| 127 | maintainer-clean: distclean | 127 | maintainer-clean: distclean |
| 128 | rm -f TAGS gnulib.mk | 128 | rm -f TAGS gnulib.mk |
| 129 | extraclean: distclean | 129 | extraclean: distclean |
| 130 | -rmdir sys 2>/dev/null | 130 | -rmdir malloc sys 2>/dev/null |
| 131 | 131 | ||
| 132 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 132 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 133 | 133 | ||