2018-01-29 22:07:15 +03:00
|
|
|
IN_DOCKER = $(wildcard /addons-server-docker-container)
|
2016-05-17 15:07:33 +03:00
|
|
|
|
2017-06-15 11:41:40 +03:00
|
|
|
ifneq ($(IN_DOCKER),)
|
|
|
|
SUB_MAKEFILE = Makefile-docker
|
|
|
|
else
|
|
|
|
SUB_MAKEFILE = Makefile-os
|
2016-05-19 12:26:46 +03:00
|
|
|
endif
|
|
|
|
|
2017-06-15 11:41:40 +03:00
|
|
|
include $(SUB_MAKEFILE)
|
2017-06-09 20:14:29 +03:00
|
|
|
|
2019-02-07 09:56:39 +03:00
|
|
|
|
2013-11-20 15:00:42 +04:00
|
|
|
help:
|
2019-08-29 16:34:26 +03:00
|
|
|
@echo "Please use 'make <target>' where <target> is one of the following commands.\n"
|
2017-06-15 11:41:40 +03:00
|
|
|
@$(MAKE) help_submake --no-print-directory
|
2019-08-29 16:34:26 +03:00
|
|
|
@echo "\nCheck the Makefile to know exactly what each target is doing."
|
2019-08-29 14:10:25 +03:00
|
|
|
|
|
|
|
# You probably want to put new commands in Makefile-docker rather than here -
|
|
|
|
# unless they operate on multiple containers or are host-os specific, then
|
|
|
|
# Makefile-os instead.
|