From 39406f4d2a644a87cc8567e5f5b5554e4598c8a5 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 2 Mar 2015 17:36:51 +0100 Subject: 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. --- scintilla.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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@ -- cgit v1.2.3