Debian Codegraph @

third-party/Makefile

raw symbols SCIP
1
2 -include ../makeopts
3 include Makefile.rules
4
5 TP_ALL_SUBDIRS := jansson pjproject libjwt
6
7 TP_SUBDIRS :=
8 # Sub directories that contain special install/uninstall targets must be explicitly listed
9 # to prevent accidentally running the package's default install target.
10 TP_INSTALL_SUBDIRS :=
11
12 ifeq ($(PJPROJECT_BUNDLED),yes)
13 TP_SUBDIRS += pjproject
14 TP_INSTALL_SUBDIRS += pjproject
15 endif
16
17 ifeq ($(JANSSON_BUNDLED),yes)
18 TP_SUBDIRS += jansson
19 TP_INSTALL_SUBDIRS += jansson
20 endif
21
22 ifeq ($(LIBJWT_BUNDLED),yes)
23 TP_SUBDIRS += libjwt
24 TP_INSTALL_SUBDIRS += libjwt
25 libjwt: jansson
26 export JANSSON_CFLAGS=$(JANSSON_INCLUDE)
27 export JANSSON_LIBS=$(JANSSON_LIB)
28 endif
29
30 override MAKECMDGOALS?=all
31 MAKECMDGOALS:=$(subst dist-clean,distclean,$(MAKECMDGOALS))
32
33 .PHONY: all dist-clean distclean install clean moduleinfo makeopts uninstall $(TP_ALL_SUBDIRS)
34
35 ifeq ($(findstring clean,$(MAKECMDGOALS)),clean)
36 distclean dist-clean clean : $(TP_ALL_SUBDIRS)
37 TP_RUN_SUBDIRS := $(TP_ALL_SUBDIRS)
38 else
39 all install uninstall : $(TP_SUBDIRS)
40 install uninstall: $(TP_INSTALL_SUBDIRS)
41 TP_RUN_SUBDIRS := $(TP_SUBDIRS)
42 endif
43
44 ifneq ($(TP_RUN_SUBDIRS),)
45
46 $(TP_RUN_SUBDIRS):
47 +$(CMD_PREFIX) $(SUBMAKE) -C $@ $(MAKECMDGOALS)
48
49 endif