Makefile
author Volker Birk <vb@pep-project.org>
Fri, 05 Apr 2019 20:04:11 +0200
branchsync
changeset 3445 d5bea8ccf7a5
parent 3444 b02aedcd6a50
child 3446 30dc8022b871
permissions -rw-r--r--
correcting double build
     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 Makefile.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 all:
    23 	$(MAKE) -C sync
    24 	$(MAKE) -C asn.1
    25 	$(MAKE) -C src
    26 
    27 install: all
    28 	$(MAKE) -C src install
    29 	$(MAKE) -C asn.1 install
    30 
    31 dbinstall: db
    32 	$(MAKE) -C db install
    33 
    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 
    46 .PHONY: tags
    47 tags:
    48 	$(MAKE) -C asn.1 tags
    49 	$(MAKE) -C src tags
    50 
    51 .PHONY: test
    52 test: all
    53 	$(MAKE) -C test test
    54 
    55 .PHONY: package
    56 package: clean
    57 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    58 
    59 db:
    60 	$(MAKE) -C db db