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