From: Pietro Cerutti Date: Tue, 14 Nov 2017 15:39:47 +0000 (+0000) Subject: Make sure objects are not compiled before git_ver.h is generated X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16829d109cfe06f2ff75d30ec8118c7e8e0b1aa0;p=neomutt Make sure objects are not compiled before git_ver.h is generated --- diff --git a/Makefile.autosetup b/Makefile.autosetup index b304d2504..c5d7a134f 100644 --- a/Makefile.autosetup +++ b/Makefile.autosetup @@ -208,6 +208,9 @@ all: $(BINFILES) $(LIBBINFILES) $(ALL_TARGETS) $(CC) $(CFLAGS) -MT $@ -MD -MP -MF $*.Tpo -c -o $@ $< @mv $*.Tpo $*.Po +# make sure git_ver.h is built before any .o files +$(ALLOBJS): git_ver.h + # mutt $(NEOMUTT): $(GENERATED) $(NEOMUTTOBJS) $(MUTTLIBS) $(CC) -o $@ $(NEOMUTTOBJS) $(MUTTLIBS) $(LDFLAGS) $(LIBS)