Makefile
author Neal H. Walfield <neal@pep.foundation>
Wed, 08 May 2019 12:20:37 +0200
branchemail_comparison
changeset 3649 1dd837adc30b
parent 3608 dbcb24324e86
child 3651 f22ed667bb0d
permissions -rw-r--r--
Fix public key.
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@3201
     8
include Makefile.conf
vb@1
     9
damiano@2213
    10
ifneq ($(wildcard local.conf),)
damiano@2213
    11
    $(info ================================================)
vb@3452
    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 ================================================)
vb@3452
    18
    $(info Overrides in `$(BUILD_CONFIG)` are used.)
damiano@2213
    19
    $(info ================================================)
damiano@2213
    20
endif
damiano@2213
    21
damiano@3608
    22
ifneq ($(MAKE_VERSION),$(word 2,$(sort $(MAKE_VERSION) 4)))
damiano@3608
    23
    $(warning ================================================)
damiano@3608
    24
    $(warning You are using a make version older than 4. This might cause problems.)
damiano@3608
    25
    $(warning ================================================)
damiano@3608
    26
endif
damiano@3608
    27
damiano@3608
    28
vb@3452
    29
.PHONY: all sync asn1 build install dbinstall uninstall clean tags test package db
vb@3452
    30
vb@3457
    31
build: asn1
vb@3457
    32
	$(MAKE) -C src
vb@3457
    33
vb@3458
    34
all: build
vb@3457
    35
	make -C test
vb@3452
    36
vb@3452
    37
sync:
vb@2829
    38
	$(MAKE) -C sync
vb@3452
    39
vb@3452
    40
asn1: sync
vb@637
    41
	$(MAKE) -C asn.1
vb@3452
    42
vb@3452
    43
install: build
vb@1
    44
	$(MAKE) -C src install
damiano@1919
    45
	$(MAKE) -C asn.1 install
vb@1
    46
damiano@3207
    47
dbinstall: db
damiano@3207
    48
	$(MAKE) -C db install
damiano@3207
    49
damiano@2213
    50
uninstall:
vb@1
    51
	$(MAKE) -C src uninstall
damiano@1950
    52
	$(MAKE) -C asn.1 uninstall
vb@1
    53
damiano@2213
    54
clean:
vb@1
    55
	$(MAKE) -C src clean
vb@1
    56
	$(MAKE) -C test clean
vb@364
    57
	$(MAKE) -C db clean
krista@2271
    58
	$(MAKE) -C sync clean
vb@637
    59
	$(MAKE) -C asn.1 clean
vb@1
    60
vb@2872
    61
tags:
vb@2872
    62
	$(MAKE) -C asn.1 tags
vb@2872
    63
	$(MAKE) -C src tags
vb@2872
    64
vb@1
    65
test: all
damiano@3207
    66
	$(MAKE) -C test test
vb@1
    67
vb@1
    68
package: clean
damiano@1949
    69
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    70
damiano@2213
    71
db:
vb@364
    72
	$(MAKE) -C db db