Makefile
author Krista Bennett <krista@pep-project.org>
Thu, 22 Feb 2018 17:18:24 +0100
changeset 2531 68b7fb2ad5b2
parent 2271 25bfd109320c
child 2683 50dde138a786
permissions -rw-r--r--
ENGINE-390: fixed deprecated _decrypt_in_pieces; we need to talk about how much backward compatibility we'll maintain.
damiano@1960
     1
# Copyright 2017, pEp Foundation
damiano@1958
     2
# This file is part of pEpEngine
damiano@1958
     3
# This file may be used under the terms of the GNU General Public License version 3
vb@1513
     4
# see LICENSE.txt
vb@1513
     5
damiano@1963
     6
HERE_REL := $(notdir $(CURDIR))
damiano@1963
     7
damiano@2210
     8
include default.conf
vb@1
     9
damiano@2213
    10
ifneq ($(wildcard local.conf),)
damiano@2213
    11
    $(info ================================================)
damiano@2213
    12
    $(info Overrides in \`local.conf\` are used.)
damiano@2213
    13
    $(info ================================================)
damiano@2213
    14
endif
damiano@2213
    15
damiano@2213
    16
ifdef BUILD_CONFIG
damiano@2213
    17
    $(info ================================================)
damiano@2213
    18
    $(info Overrides in \`$(BUILD_CONFIG)\` are used.)
damiano@2213
    19
    $(info ================================================)
damiano@2213
    20
endif
damiano@2213
    21
damiano@1949
    22
.PHONY: all
damiano@2213
    23
all:
vb@637
    24
	$(MAKE) -C asn.1 generate
vb@637
    25
	$(MAKE) -C asn.1
krista@2271
    26
	$(MAKE) -C sync
vb@1
    27
	$(MAKE) -C src all
vb@1
    28
damiano@1949
    29
.PHONY: install
vb@637
    30
install: all
vb@1
    31
	$(MAKE) -C src install
damiano@1919
    32
	$(MAKE) -C asn.1 install
vb@1
    33
damiano@1949
    34
.PHONY: uninstall
damiano@2213
    35
uninstall:
vb@1
    36
	$(MAKE) -C src uninstall
damiano@1950
    37
	$(MAKE) -C asn.1 uninstall
vb@1
    38
damiano@1949
    39
.PHONY: clean
damiano@2213
    40
clean:
vb@1
    41
	$(MAKE) -C src clean
vb@1
    42
	$(MAKE) -C test clean
vb@364
    43
	$(MAKE) -C db clean
krista@2271
    44
	$(MAKE) -C sync clean
vb@637
    45
	$(MAKE) -C asn.1 clean
damiano@2216
    46
	rm -rf test_home
vb@1
    47
damiano@1949
    48
.PHONY: test
vb@1
    49
test: all
vb@1
    50
	$(MAKE) -C test test
vb@151
    51
	$(MAKE) -C test unit_tests
vb@1
    52
damiano@1949
    53
.PHONY: unit_tests
vb@87
    54
unit_tests: all
vb@87
    55
	$(MAKE) -C test unit_tests
vb@55
    56
damiano@1949
    57
.PHONY: package
vb@1
    58
package: clean
damiano@1949
    59
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    60
damiano@1949
    61
.PHONY: db
damiano@2213
    62
db:
vb@364
    63
	$(MAKE) -C db db