Makefile
author Krista Bennett <krista@pep-project.org>
Mon, 22 Oct 2018 10:34:59 +0200
branchsync
changeset 3096 89d9de21bc2a
parent 2872 ea6d9edc7001
child 3201 105b50dfaf15
permissions -rw-r--r--
Little bits of cleanup fun
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@2829
    24
	$(MAKE) -C sync
vb@637
    25
	$(MAKE) -C asn.1
vb@1
    26
	$(MAKE) -C src all
vb@1
    27
damiano@1949
    28
.PHONY: install
vb@637
    29
install: all
vb@1
    30
	$(MAKE) -C src install
damiano@1919
    31
	$(MAKE) -C asn.1 install
vb@1
    32
damiano@1949
    33
.PHONY: uninstall
damiano@2213
    34
uninstall:
vb@1
    35
	$(MAKE) -C src uninstall
damiano@1950
    36
	$(MAKE) -C asn.1 uninstall
vb@1
    37
damiano@1949
    38
.PHONY: clean
damiano@2213
    39
clean:
vb@1
    40
	$(MAKE) -C src clean
vb@1
    41
	$(MAKE) -C test clean
vb@364
    42
	$(MAKE) -C db clean
krista@2271
    43
	$(MAKE) -C sync clean
vb@637
    44
	$(MAKE) -C asn.1 clean
damiano@2216
    45
	rm -rf test_home
vb@1
    46
vb@2872
    47
.PHONY: tags
vb@2872
    48
tags:
vb@2872
    49
	$(MAKE) -C asn.1 tags
vb@2872
    50
	$(MAKE) -C src tags
vb@2872
    51
damiano@1949
    52
.PHONY: test
vb@1
    53
test: all
vb@1
    54
	$(MAKE) -C test test
vb@1
    55
damiano@1949
    56
.PHONY: package
vb@1
    57
package: clean
damiano@1949
    58
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    59
damiano@1949
    60
.PHONY: db
damiano@2213
    61
db:
vb@364
    62
	$(MAKE) -C db db