Kaynağa Gözat

[Makefile] always generate version.ml

such that the version info is always up-to-date
Andy Li 8 yıl önce
ebeveyn
işleme
5755f106c3
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -113,7 +113,7 @@ build_dirs:
 _build/src/syntax/parser.ml:src/syntax/parser.mly
 	camlp4o -impl $< -o $@
 
-_build/src/compiler/version.ml:
+_build/src/compiler/version.ml: FORCE
 ifneq ($(ADD_REVISION),0)
 	$(MAKE) -f Makefile.version_extra -s --no-print-directory ADD_REVISION=$(ADD_REVISION) BRANCH=$(BRANCH) COMMIT_SHA=$(COMMIT_SHA) COMMIT_DATE=$(COMMIT_DATE) > _build/src/compiler/version.ml
 else
@@ -259,6 +259,8 @@ clean_tools:
 clean_package:
 	rm -rf $(PACKAGE_OUT_DIR)
 
+FORCE:
+
 # SUFFIXES
 
 .ml.cmx: