blob: 94877b26f2dea53d061e301a9cbe0bde91ad88d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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
# Build as phony target - we do not know
# scintilla.a's dependencies.
# If it's up to date, the additional recursive
# make call does not hurt.
# NOTE: We can pass the (cross-)compiler to
# Scintilla's build process, but no CFLAGS :-(
.PHONY: make-scintilla
make-scintilla:
$(MAKE) -C $(SCINTILLA_MAKE_DIR) \
CXX=@CXX@ AR=@AR@
# scintilla.a itself is not phony.
# This avoids unnecessary relinking if it is
# up to date.
# Also note the ; which defines this recipe as
# empty.
@SCINTILLA_PATH@/bin/scintilla.a : make-scintilla;
.PHONY: clean-local-scintilla
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
|