File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -173,15 +173,18 @@ beforedepend:: src/glob_lexer.ml
173173
174174# The config file
175175
176- configure : Makefile.config src/ocamlbuild_config.ml
176+ CONF_FILES =Makefile.config src/ocamlbuild_config.ml
177+ configure : $(CONF_FILES )
177178
178- Makefile.config src/ocamlbuild_config.ml : configure.make
179+ $( CONF_FILES ) :
179180 $(MAKE ) -f configure.make $@
180181
182+ .PHONY : $(CONF_FILES )
183+
181184clean ::
182- rm -f Makefile.config src/ocamlbuild_config.ml
185+ rm -f $( CONF_FILES )
183186
184- beforedepend :: src/ocamlbuild_config.ml
187+ beforedepend :: configure
185188
186189# Installation
187190
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ Makefile.config:
8383 echo " LIBDIR=$( OCAMLBUILD_LIBDIR) " ; \
8484 ) > $@
8585
86+ # the configuration file depends on the git environment,
87+ # so it should be rebuilt each time
88+ .PHONY : src/ocamlbuild_config.ml
89+
8690src/ocamlbuild_config.ml :
8791 (echo " (* This file was generated from ../configure.make *)" ; \
8892 echo ; \
You can’t perform that action at this time.
0 commit comments