Makefile
author Krista Bennett <krista@pep-project.org>
Fri, 19 Oct 2018 13:25:50 +0200
branchENGINE-473
changeset 3092 389d6b6c204c
parent 2683 50dde138a786
child 2829 e444c3c960bb
permissions -rw-r--r--
ENGINE-473: all's well that ends well. We now keep track of trust bits when expiring and restore them when the key is renewed.
     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 	rm -rf test_home
    47 
    48 .PHONY: test
    49 test: all
    50 	$(MAKE) -C test test
    51 
    52 
    53 .PHONY: package
    54 package: clean
    55 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    56 
    57 .PHONY: db
    58 db:
    59 	$(MAKE) -C db db