[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Running a command always but only once (even if included Makefiles are r
Running a command always but only once (even if included Makefiles are remade)
Mon, 07 Dec 2009 12:01:44 +0100
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
in the Makefile of my project I would like to always run (before
everything else) a command which updates the submodules of the project.
I do this by having the line
somewhere in the Makefile.
However, when the automatically generated dependencies are re-generated,
which happens every time some source file has been changed, the Makefile
is re-initialized. As a consequence, `to-be-run' is executed a second
I wonder how to tell GNU make to execute a command always, but only
once, even if some of the included Makefiles are re-generated.
- Running a command always but only once (even if included Makefiles are remade),
Christoph Groth <=