[Top][All Lists]
[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
From: |
Christoph Groth |
Subject: |
Running a command always but only once (even if included Makefiles are remade) |
Date: |
Mon, 07 Dec 2009 12:01:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hello,
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
$(shell to-be-run)
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
time.
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.
thanks,
Christoph
- Running a command always but only once (even if included Makefiles are remade),
Christoph Groth <=