Makefile
author Damiano Boppart <damiano@pep-security.net>
Thu, 26 Oct 2017 16:19:32 +0200
branchENGINE-261
changeset 2213 04052cc0c922
parent 2210 17c30881c885
child 2216 ef23982e4744
permissions -rw-r--r--
Print override info for every target
     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 default.conf
     9 
    10 ifneq ($(wildcard local.conf),)
    11     $(info ================================================)
    12     $(info Overrides in \`local.conf\` are used.)
    13     $(info ================================================)
    14 endif
    15 
    16 ifdef BUILD_CONFIG
    17     $(info ================================================)
    18     $(info Overrides in \`$(BUILD_CONFIG)\` are used.)
    19     $(info ================================================)
    20 endif
    21 
    22 .PHONY: all
    23 all:
    24 	$(MAKE) -C asn.1 generate
    25 	$(MAKE) -C asn.1
    26 	$(MAKE) -C sync
    27 	$(MAKE) -C src all
    28 
    29 .PHONY: install
    30 install: all
    31 	$(MAKE) -C src install
    32 	$(MAKE) -C asn.1 install
    33 
    34 .PHONY: uninstall
    35 uninstall:
    36 	$(MAKE) -C src uninstall
    37 	$(MAKE) -C asn.1 uninstall
    38 
    39 .PHONY: clean
    40 clean:
    41 	$(MAKE) -C src clean
    42 	$(MAKE) -C test clean
    43 	$(MAKE) -C db clean
    44 	$(MAKE) -C sync clean
    45 	$(MAKE) -C asn.1 clean
    46 
    47 .PHONY: test
    48 test: all
    49 	$(MAKE) -C test test
    50 	$(MAKE) -C test unit_tests
    51 
    52 .PHONY: unit_tests
    53 unit_tests: all
    54 	$(MAKE) -C test unit_tests
    55 
    56 .PHONY: package
    57 package: clean
    58 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    59 
    60 .PHONY: db
    61 db:
    62 	$(MAKE) -C db db