From 787c3edfe7d16dc6a647879026539ccd4750cfe6 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti <gahr@gahr.ch> Date: Tue, 29 May 2018 15:39:23 +0000 Subject: [PATCH] Avoid regenerating hcache/hcversion.h after building objects in hcache Specifying the hcache directory asqa dependency for hcache/hcversion.h means that the latter will be regenerated whenever the hcache directory is changed, such as when object files are written into it. The net effect is that "make; make" regenerates hcache/hcversion.h twice. This commit fixes this problem by explicitely creating the hcache directory as part of the hcache/hcversion.h target. --- Makefile.autosetup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.autosetup b/Makefile.autosetup index e1504ff47..4e9e89803 100644 --- a/Makefile.autosetup +++ b/Makefile.autosetup @@ -276,8 +276,8 @@ hcache/hcversion.h: $(SRCDIR)/mutt.h $(SRCDIR)/mutt/address.h \ $(SRCDIR)/mutt/list.h $(SRCDIR)/mutt/buffer.h \ $(SRCDIR)/mutt/parameter.h $(SRCDIR)/body.h \ $(SRCDIR)/envelope.h $(SRCDIR)/header.h \ - $(SRCDIR)/hcache/hcachever.sh \ - $(PWD)/hcache + $(SRCDIR)/hcache/hcachever.sh + $(MKDIR_P) $(PWD)/hcache ( echo '#include "config.h"'; echo '#include "mutt.h"'; \ echo '#include "mutt/address.h"'; echo '#include "mutt/list.h"'; \ echo '#include "mutt/buffer.h"'; echo '#include "mutt/parameter.h"'; \ -- 2.40.0