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
173
173
174
174
# The config file
175
175
176
- configure : Makefile.config src/ocamlbuild_config.ml
176
+ CONF_FILES =Makefile.config src/ocamlbuild_config.ml
177
+ configure : $(CONF_FILES )
177
178
178
- Makefile.config src/ocamlbuild_config.ml : configure.make
179
+ $( CONF_FILES ) :
179
180
$(MAKE ) -f configure.make $@
180
181
182
+ .PHONY : $(CONF_FILES )
183
+
181
184
clean ::
182
- rm -f Makefile.config src/ocamlbuild_config.ml
185
+ rm -f $( CONF_FILES )
183
186
184
- beforedepend :: src/ocamlbuild_config.ml
187
+ beforedepend :: configure
185
188
186
189
# Installation
187
190
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ Makefile.config:
83
83
echo " LIBDIR=$( OCAMLBUILD_LIBDIR) " ; \
84
84
) > $@
85
85
86
+ # the configuration file depends on the git environment,
87
+ # so it should be rebuilt each time
88
+ .PHONY : src/ocamlbuild_config.ml
89
+
86
90
src/ocamlbuild_config.ml :
87
91
(echo " (* This file was generated from ../configure.make *)" ; \
88
92
echo ; \
You can’t perform that action at this time.
0 commit comments