Makefile
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-237
changeset 2726 497fe9a22367
parent 1993 efaeadf3e6f0
child 2082 253f13cdf056
permissions -rw-r--r--
close branch
     1 # Copyright 2017, pEp Foundation
     2 # This file is part of pEpEngine
     3 # This file may be used under the terms of the GNU General Public License version 3
     4 # see LICENSE.txt
     5 
     6 HERE_REL := $(notdir $(CURDIR))
     7 
     8 include Makefile.conf
     9 
    10 # YML_PATH is needed in the environment of every call to a program of the YML2 distribution
    11 export YML_PATH=$(YML2_PATH)
    12 
    13 .PHONY: all
    14 all: _platform_override_info
    15 	$(MAKE) -C asn.1 generate
    16 	$(MAKE) -C asn.1
    17 	$(MAKE) -C sync
    18 	$(MAKE) -C src all
    19 
    20 .PHONY: install
    21 install: all
    22 	$(MAKE) -C src install
    23 	$(MAKE) -C asn.1 install
    24 
    25 .PHONY: uninstall
    26 uninstall:
    27 	$(MAKE) -C src uninstall
    28 	$(MAKE) -C asn.1 uninstall
    29 
    30 .PHONY: clean
    31 clean:
    32 	$(MAKE) -C src clean
    33 	$(MAKE) -C test clean
    34 	$(MAKE) -C db clean
    35 	$(MAKE) -C sync clean
    36 	$(MAKE) -C asn.1 clean
    37 
    38 .PHONY: test
    39 test: all
    40 	$(MAKE) -C test test
    41 	$(MAKE) -C test unit_tests
    42 
    43 .PHONY: unit_tests
    44 unit_tests: all
    45 	$(MAKE) -C test unit_tests
    46 
    47 .PHONY: package
    48 package: clean
    49 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    50 
    51 .PHONY: db
    52 db:
    53 	$(MAKE) -C db db
    54 
    55 .PHONY: _platform_override
    56 ifdef PLATFORM_OVERRIDE
    57 _platform_override_info:
    58 	@echo "================================================"
    59 	@echo "PLATFORM_OVERRIDE is set to '$(PLATFORM_OVERRIDE)'."
    60 	@echo "================================================"
    61 else
    62 _platform_override_info:
    63 endif