Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 20 Feb 2020 15:30:27 +0100
branchgrind_and_cleanup
changeset 4435 64c9d3bf0d77
parent 4415 7f0084a88882
child 4439 e83131d4854e
permissions -rw-r--r--
debian compilation cleanup
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 ================================================)
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@3457
    24
build: asn1
vb@3457
    25
	$(MAKE) -C src
vb@3457
    26
vb@3458
    27
all: build
vb@3457
    28
	make -C test
vb@3452
    29
vb@3452
    30
sync:
vb@2829
    31
	$(MAKE) -C sync
vb@3452
    32
vb@3452
    33
asn1: sync
vb@637
    34
	$(MAKE) -C asn.1
vb@3452
    35
vb@3452
    36
install: build
vb@1
    37
	$(MAKE) -C src install
damiano@1919
    38
	$(MAKE) -C asn.1 install
vb@1
    39
vb@4415
    40
beinstall:
vb@4415
    41
	$(MAKE) -C src beinstall
vb@4415
    42
damiano@3207
    43
dbinstall: db
damiano@3207
    44
	$(MAKE) -C db install
damiano@3207
    45
damiano@2213
    46
uninstall:
vb@1
    47
	$(MAKE) -C src uninstall
damiano@1950
    48
	$(MAKE) -C asn.1 uninstall
vb@1
    49
damiano@2213
    50
clean:
vb@1
    51
	$(MAKE) -C src clean
vb@1
    52
	$(MAKE) -C test clean
vb@364
    53
	$(MAKE) -C db clean
krista@4435
    54
	$(MAKE) -C asn.1 clean
krista@2271
    55
	$(MAKE) -C sync clean
vb@1
    56
vb@2872
    57
tags:
vb@2872
    58
	$(MAKE) -C asn.1 tags
vb@2872
    59
	$(MAKE) -C src tags
vb@2872
    60
vb@1
    61
test: all
damiano@3207
    62
	$(MAKE) -C test test
vb@1
    63
vb@1
    64
package: clean
damiano@1949
    65
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    66
damiano@2213
    67
db:
vb@364
    68
	$(MAKE) -C db db