Makefile
author Volker Birk <vb@pep-project.org>
Fri, 05 Apr 2019 20:05:25 +0200
branchsync
changeset 3446 30dc8022b871
parent 3445 d5bea8ccf7a5
child 3452 c92df43dc125
permissions -rw-r--r--
well…
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@1517
     4
# see LICENSE.txt
vb@1517
     5
damiano@1963
     6
HERE_REL := $(notdir $(CURDIR))
damiano@1963
     7
damiano@3201
     8
include Makefile.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@2213
    22
all:
vb@2829
    23
	$(MAKE) -C sync
vb@637
    24
	$(MAKE) -C asn.1
vb@3445
    25
	$(MAKE) -C src
vb@1
    26
vb@3446
    27
.PHONY: install
vb@637
    28
install: all
vb@1
    29
	$(MAKE) -C src install
damiano@1919
    30
	$(MAKE) -C asn.1 install
vb@1
    31
vb@3446
    32
.PHONY: dbinstall
damiano@3207
    33
dbinstall: db
damiano@3207
    34
	$(MAKE) -C db install
damiano@3207
    35
vb@3446
    36
.PHONY: uninstall
damiano@2213
    37
uninstall:
vb@1
    38
	$(MAKE) -C src uninstall
damiano@1950
    39
	$(MAKE) -C asn.1 uninstall
vb@1
    40
damiano@1949
    41
.PHONY: clean
damiano@2213
    42
clean:
vb@1
    43
	$(MAKE) -C src clean
vb@1
    44
	$(MAKE) -C test clean
vb@364
    45
	$(MAKE) -C db clean
krista@2271
    46
	$(MAKE) -C sync clean
vb@637
    47
	$(MAKE) -C asn.1 clean
vb@1
    48
vb@2872
    49
.PHONY: tags
vb@2872
    50
tags:
vb@2872
    51
	$(MAKE) -C asn.1 tags
vb@2872
    52
	$(MAKE) -C src tags
vb@2872
    53
damiano@1949
    54
.PHONY: test
vb@1
    55
test: all
damiano@3207
    56
	$(MAKE) -C test test
vb@1
    57
damiano@1949
    58
.PHONY: package
vb@1
    59
package: clean
damiano@1949
    60
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    61
damiano@2213
    62
db:
vb@364
    63
	$(MAKE) -C db db