diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-02 17:36:51 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-02 17:36:51 +0100 |
commit | 39406f4d2a644a87cc8567e5f5b5554e4598c8a5 (patch) | |
tree | b1bc7cb280662ce1743e05dca6806117e06d93a8 /scintilla.am | |
parent | 03be83f5a444183083f895352133f04b24fcc48f (diff) | |
download | sciteco-39406f4d2a644a87cc8567e5f5b5554e4598c8a5.tar.gz |
define scintilla.a as a phony target
when hacking Scintilla, it is useful to recompile it as
necessary. Since SciTECO calls the Scintilla/Scinterm Makefile
recursively, we do not know the libraries dependencies in
SciTECO's build system. It therefore makes sense to define
externally built targets as phony, so the recursive make
is called every time scintilla.a is required. If scintilla.a
is already up to date, the additional recursive make call
won't hurt.
Diffstat (limited to 'scintilla.am')
-rw-r--r-- | scintilla.am | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scintilla.am b/scintilla.am index 0d408bd..0398cce 100644 --- a/scintilla.am +++ b/scintilla.am @@ -1,6 +1,10 @@ # Scintilla/Scinterm are cloned as submodules # of this repository, so we may give a rule -# for building scintilla.a here +# for building scintilla.a here. +# It is built as a phony target since we do not +# know its dependencies. +# If it is up to date, the additional recursive +# Make call does not hurt. if INTERFACE_GTK SCINTILLA_MAKE_DIR = @SCINTILLA_PATH@/gtk @@ -8,6 +12,7 @@ else SCINTILLA_MAKE_DIR = @SCINTERM_PATH@ endif +.PHONY: @SCINTILLA_PATH@/bin/scintilla.a @SCINTILLA_PATH@/bin/scintilla.a : $(MAKE) -C $(SCINTILLA_MAKE_DIR) \ CXX=@CXX@ AR=@AR@ |