Browse Source

Use BUILT_SOURCES to ensure version.h is always built first

Luke Dashjr 11 years ago
parent
commit
56522a9426
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Makefile.am

+ 1 - 0
Makefile.am

@@ -82,6 +82,7 @@ update-version:
 	cmp version.h version.h.new && rm version.h.new || mv version.h.new version.h
 	cmp version.h version.h.new && rm version.h.new || mv version.h.new version.h
 version.h: update-version
 version.h: update-version
 bfgminer_SOURCES += version.h
 bfgminer_SOURCES += version.h
+BUILT_SOURCES = version.h
 
 
 SUBDIRS += $(LIBBLKMAKER_SUBDIRS)
 SUBDIRS += $(LIBBLKMAKER_SUBDIRS)
 LIBBLKMAKER_SUBDIRS =
 LIBBLKMAKER_SUBDIRS =