]> granicus.if.org Git - neomutt/commitdiff
Make sure objects are not compiled before git_ver.h is generated
authorPietro Cerutti <gahr@gahr.ch>
Tue, 14 Nov 2017 15:39:47 +0000 (15:39 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Tue, 14 Nov 2017 15:39:47 +0000 (15:39 +0000)
Makefile.autosetup

index b304d25046ace3909f4e5c5f417cf19e3ce39b1c..c5d7a134fe4ac9f6403c4b55bdecebc31398d5fa 100644 (file)
@@ -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)