From 30d8bf3e2835dbb0bf6876a6a1d4dd227ba335a9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 22 Aug 2014 05:54:47 +0200 Subject: automatically build Scintilla as part of SciTECO's build system: this should simplify building SciTECO for new users * compiler and archiver are passed down from Autoconf, so cross-compiling should work transparently * `make clean` will also clean the Scintilla source tree * there is no longer any need for "source bundles" as tar balls also contain Scintilla/Scinterm now * building from Git is not much more difficult than building from a tar ball * The versions of Scintilla/Scinterm embedded as submodules already contain all the patches necessary (currently none are necessary), so there's no need to have patch files in the repository * INSTALL instructions have been rewritten * the --with-scintilla and --with-scinterm site-config options have been kept. But they should be rarely necessary now. --- scintilla.am | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scintilla.am (limited to 'scintilla.am') diff --git a/scintilla.am b/scintilla.am new file mode 100644 index 0000000..0d408bd --- /dev/null +++ b/scintilla.am @@ -0,0 +1,22 @@ +# Scintilla/Scinterm are cloned as submodules +# of this repository, so we may give a rule +# for building scintilla.a here + +if INTERFACE_GTK +SCINTILLA_MAKE_DIR = @SCINTILLA_PATH@/gtk +else +SCINTILLA_MAKE_DIR = @SCINTERM_PATH@ +endif + +@SCINTILLA_PATH@/bin/scintilla.a : + $(MAKE) -C $(SCINTILLA_MAKE_DIR) \ + CXX=@CXX@ AR=@AR@ + +clean-local-scintilla: + $(MAKE) -C $(SCINTILLA_MAKE_DIR) clean + +# NOTE: using a separate `clean-local-scintilla` +# target allows us to add more custom rules to the +# including Automake file +clean-local: clean-local-scintilla +.PHONY: clean-local-scintilla -- cgit v1.2.3