Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 22 May 2018 11:08:19 +0200
changeset 2683 50dde138a786
parent 2271 25bfd109320c
child 2829 e444c3c960bb
permissions -rw-r--r--
removed unit_tests target
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@1
    51
vb@55
    52
damiano@1949
    53
.PHONY: package
vb@1
    54
package: clean
damiano@1949
    55
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    56
damiano@1949
    57
.PHONY: db
damiano@2213
    58
db:
vb@364
    59
	$(MAKE) -C db db