Makefile
author Krista Bennett <krista@pep-project.org>
Thu, 02 Nov 2017 17:30:01 +0100
changeset 2265 73c0738de68c
parent 2216 ef23982e4744
child 2271 25bfd109320c
permissions -rw-r--r--
Removed all 2-party keysync components from engine.
     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 src all
    27 
    28 .PHONY: install
    29 install: all
    30 	$(MAKE) -C src install
    31 	$(MAKE) -C asn.1 install
    32 
    33 .PHONY: uninstall
    34 uninstall:
    35 	$(MAKE) -C src uninstall
    36 	$(MAKE) -C asn.1 uninstall
    37 
    38 .PHONY: clean
    39 clean:
    40 	$(MAKE) -C src clean
    41 	$(MAKE) -C test clean
    42 	$(MAKE) -C db clean
    43 	$(MAKE) -C asn.1 clean
    44 	rm -rf test_home
    45 
    46 .PHONY: test
    47 test: all
    48 	$(MAKE) -C test test
    49 	$(MAKE) -C test unit_tests
    50 
    51 .PHONY: unit_tests
    52 unit_tests: all
    53 	$(MAKE) -C test unit_tests
    54 
    55 .PHONY: package
    56 package: clean
    57 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    58 
    59 .PHONY: db
    60 db:
    61 	$(MAKE) -C db db