Makefile
author Volker Birk <vb@pep.foundation>
Wed, 22 Aug 2018 18:55:53 +0200
branchsync
changeset 2872 ea6d9edc7001
parent 2871 4593a7b8b6a8
child 3201 105b50dfaf15
permissions -rw-r--r--
make tags
     1 # Copyright 2017, pEp Foundation
     2 # This file is part of pEpEngine
     3 # This file may be used under the terms of the GNU General Public License version 3
     4 # see LICENSE.txt
     5 
     6 HERE_REL := $(notdir $(CURDIR))
     7 
     8 include default.conf
     9 
    10 ifneq ($(wildcard local.conf),)
    11     $(info ================================================)
    12     $(info Overrides in \`local.conf\` are used.)
    13     $(info ================================================)
    14 endif
    15 
    16 ifdef BUILD_CONFIG
    17     $(info ================================================)
    18     $(info Overrides in \`$(BUILD_CONFIG)\` are used.)
    19     $(info ================================================)
    20 endif
    21 
    22 .PHONY: all
    23 all:
    24 	$(MAKE) -C sync
    25 	$(MAKE) -C asn.1
    26 	$(MAKE) -C src all
    27 
    28 .PHONY: install
    29 install: all
    30 	$(MAKE) -C src install
    31 	$(MAKE) -C asn.1 install
    32 
    33 .PHONY: uninstall
    34 uninstall:
    35 	$(MAKE) -C src uninstall
    36 	$(MAKE) -C asn.1 uninstall
    37 
    38 .PHONY: clean
    39 clean:
    40 	$(MAKE) -C src clean
    41 	$(MAKE) -C test clean
    42 	$(MAKE) -C db clean
    43 	$(MAKE) -C sync clean
    44 	$(MAKE) -C asn.1 clean
    45 	rm -rf test_home
    46 
    47 .PHONY: tags
    48 tags:
    49 	$(MAKE) -C asn.1 tags
    50 	$(MAKE) -C src tags
    51 
    52 .PHONY: test
    53 test: all
    54 	$(MAKE) -C test test
    55 
    56 .PHONY: package
    57 package: clean
    58 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    59 
    60 .PHONY: db
    61 db:
    62 	$(MAKE) -C db db