Makefile: Fix running "make dist" before "make all".
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Mar 2022 20:33:51 +0000 (13:33 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Mar 2022 21:06:54 +0000 (14:06 -0700)
Otherwise, there's a race between generating and using config.h, which
causes build failures.  This happens particularly with the PSPP autobuilder.

Makefile.am

index 1c345a1441e5f927583a90b81c45dc8e467dc822..8ed323b399dfd088d2483fa3295532a14203fb23 100644 (file)
@@ -152,7 +152,7 @@ distfiles: Makefile
 CLEANFILES += distfiles gitfiles missing-distfiles
 PHONY += dist-hook-git
 
-$(bin_PROGRAMS) $(RECURSIVE_TARGETS) dist: $(BUILT_SOURCES) gl/libgl.la
+$(bin_PROGRAMS) $(RECURSIVE_TARGETS) dist: $(BUILT_SOURCES) config.h
 
 \f