]> granicus.if.org Git - neomutt/commitdiff
Avoid regenerating hcache/hcversion.h after building objects in hcache
authorPietro Cerutti <gahr@gahr.ch>
Tue, 29 May 2018 15:39:23 +0000 (15:39 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Tue, 29 May 2018 15:39:23 +0000 (15:39 +0000)
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

index e1504ff47aef07397273a1d3f66a5edc6dc32f97..4e9e898035cb4c78b06b1d8fa7da4b2ab641b9db 100644 (file)
@@ -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"'; \