Makefile
author Damiano Boppart <damiano.boppart@pep.security>
Fri, 21 Feb 2020 17:18:55 +0100
branchsync
changeset 4431 80fe1dbc31a7
parent 4415 7f0084a88882
child 4433 f541b2be04f5
permissions -rw-r--r--
Fix bug, calling incorrect `make` binary.
     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 build: asn1
    25 	$(MAKE) -C src
    26 
    27 all: build
    28 	$(MAKE) -C test
    29 
    30 sync:
    31 	$(MAKE) -C sync
    32 
    33 asn1: sync
    34 	$(MAKE) -C asn.1
    35 
    36 install: build
    37 	$(MAKE) -C src install
    38 	$(MAKE) -C asn.1 install
    39 
    40 beinstall:
    41 	$(MAKE) -C src beinstall
    42 
    43 dbinstall: db
    44 	$(MAKE) -C db install
    45 
    46 uninstall:
    47 	$(MAKE) -C src uninstall
    48 	$(MAKE) -C asn.1 uninstall
    49 
    50 clean:
    51 	$(MAKE) -C src clean
    52 	$(MAKE) -C test clean
    53 	$(MAKE) -C db clean
    54 	$(MAKE) -C sync clean
    55 	$(MAKE) -C asn.1 clean
    56 
    57 tags:
    58 	$(MAKE) -C asn.1 tags
    59 	$(MAKE) -C src tags
    60 
    61 test: all
    62 	$(MAKE) -C test test
    63 
    64 package: clean
    65 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    66 
    67 db:
    68 	$(MAKE) -C db db