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
     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 .PHONY: all sync asn1 build install dbinstall uninstall clean tags test package db
    23 
    24 all: build
    25 
    26 sync:
    27 	$(MAKE) -C sync
    28 
    29 asn1: sync
    30 	$(MAKE) -C asn.1
    31 
    32 build: asn1
    33 	$(MAKE) -C src
    34 
    35 install: build
    36 	$(MAKE) -C src install
    37 	$(MAKE) -C asn.1 install
    38 
    39 dbinstall: db
    40 	$(MAKE) -C db install
    41 
    42 uninstall:
    43 	$(MAKE) -C src uninstall
    44 	$(MAKE) -C asn.1 uninstall
    45 
    46 clean:
    47 	$(MAKE) -C src clean
    48 	$(MAKE) -C test clean
    49 	$(MAKE) -C db clean
    50 	$(MAKE) -C sync clean
    51 	$(MAKE) -C asn.1 clean
    52 
    53 tags:
    54 	$(MAKE) -C asn.1 tags
    55 	$(MAKE) -C src tags
    56 
    57 test: all
    58 	$(MAKE) -C test test
    59 
    60 package: clean
    61 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    62 
    63 db:
    64 	$(MAKE) -C db db