mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
The change to allow easier hacking on bundled pjproject created a few issues: * The new Makefile was trying to run the bundled make even if PJPROJECT_BUNDLED=no. third-party/Makefile now checks for PJPROJECT_BUNDLED and JANSSON_BUNDLED and skips them if they are "no". * When building with bundled, config_site.h was being copied only if a full make or a "make main" was done. A "make res" would fail all the pjsip modules because they couldn't find config_site.h. The Makefile now copies config_site.h and asterisk_malloc_debug.h into the pjproject source tree when it's "configure" is performed. This is how it used to be before the big change. ASTERISK-29858 Change-Id: I9427264fa3cb8b3f59a95e5f9693eac236a6f76d
34 lines
812 B
Makefile
34 lines
812 B
Makefile
|
|
-include ../makeopts
|
|
include Makefile.rules
|
|
|
|
TP_SUBDIRS :=
|
|
# Sub directories that contain special install/uninstall targets must be explicitly listed
|
|
# to prevent accidentally running the package's default install target.
|
|
TP_INSTALL_SUBDIRS :=
|
|
|
|
ifeq ($(PJPROJECT_BUNDLED),yes)
|
|
TP_SUBDIRS += pjproject
|
|
TP_INSTALL_SUBDIRS += pjproject
|
|
endif
|
|
|
|
ifeq ($(JANSSON_BUNDLED),yes)
|
|
TP_SUBDIRS += jansson
|
|
TP_INSTALL_SUBDIRS += jansson
|
|
endif
|
|
|
|
.PHONY: all dist-clean distclean install clean moduleinfo makeopts uninstall $(TP_SUBDIRS)
|
|
|
|
ifneq ($(TP_SUBDIRS),)
|
|
|
|
override MAKECMDGOALS?=all
|
|
|
|
MAKECMDGOALS:=$(subst dist-clean,distclean,$(MAKECMDGOALS))
|
|
|
|
all distclean dist-clean install uninstall clean : $(TP_SUBDIRS)
|
|
install uninstall: $(TP_INSTALL_SUBDIRS)
|
|
|
|
$(TP_SUBDIRS):
|
|
+$(CMD_PREFIX) $(SUBMAKE) -C $@ $(MAKECMDGOALS)
|
|
|
|
endif |