Makefile
branchENGINE-261
changeset 2084 c0f658b0289f
parent 2082 253f13cdf056
child 2085 2e4dd9ac1ad3
     1.1 --- a/Makefile	Thu Sep 21 15:29:14 2017 +0200
     1.2 +++ b/Makefile	Thu Sep 21 15:40:02 2017 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  export YML_PATH=$(YML2_PATH)
     1.5  
     1.6  .PHONY: all
     1.7 -all: _platform_override_info
     1.8 +all: _override_info
     1.9  	$(MAKE) -C asn.1 generate
    1.10  	$(MAKE) -C asn.1
    1.11  	$(MAKE) -C sync
    1.12 @@ -23,12 +23,12 @@
    1.13  	$(MAKE) -C asn.1 install
    1.14  
    1.15  .PHONY: uninstall
    1.16 -uninstall:
    1.17 +uninstall: _override_info
    1.18  	$(MAKE) -C src uninstall
    1.19  	$(MAKE) -C asn.1 uninstall
    1.20  
    1.21  .PHONY: clean
    1.22 -clean:
    1.23 +clean: _override_info
    1.24  	$(MAKE) -C src clean
    1.25  	$(MAKE) -C test clean
    1.26  	$(MAKE) -C db clean
    1.27 @@ -49,15 +49,24 @@
    1.28  	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    1.29  
    1.30  .PHONY: db
    1.31 -db:
    1.32 +db: _override_info
    1.33  	$(MAKE) -C db db
    1.34  
    1.35 -.PHONY: _platform_override
    1.36 -ifdef PLATFORM_OVERRIDE
    1.37 -_platform_override_info:
    1.38 +.PHONY: _override_info
    1.39 +_override_info: _local_conf_info _build_config_info
    1.40 +
    1.41 +.PHONY: _local_conf_info
    1.42 +_local_conf_info:
    1.43 +ifneq ($(wildcard local.conf),)
    1.44  	@echo "================================================"
    1.45 -	@echo "PLATFORM_OVERRIDE is set to '$(PLATFORM_OVERRIDE)'."
    1.46 +	@echo "Overrides in `local.conf` are used."
    1.47  	@echo "================================================"
    1.48 -else
    1.49 -_platform_override_info:
    1.50  endif
    1.51 +
    1.52 +.PHONY: _build_config_info
    1.53 +_build_config_info:
    1.54 +ifdef BUILD_CONFIG
    1.55 +	@echo "================================================"
    1.56 +	@echo "Overrides in '$(BUILD_CONFIG)' are used."
    1.57 +	@echo "================================================"
    1.58 +endif