Makefile
author Roker <roker@pep-project.org>
Wed, 16 Sep 2020 18:14:33 +0200
changeset 5065 d6d23b414a93
parent 4894 b429f9f3ef83
permissions -rw-r--r--
also "install" libpEpEngine.a into $PREFIX/lib
     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 all` is not for tests, that's what `make test` is for
    29 #	$(MAKE) -C test
    30 
    31 sync:
    32 	$(MAKE) -C sync
    33 
    34 asn1: sync
    35 	$(MAKE) -C asn.1
    36 
    37 install: build
    38 	$(MAKE) -C src install
    39 	$(MAKE) -C asn.1 install
    40 
    41 beinstall:
    42 	$(MAKE) -C src beinstall
    43 
    44 dbinstall: db
    45 	$(MAKE) -C db install
    46 
    47 uninstall:
    48 	$(MAKE) -C src uninstall
    49 	$(MAKE) -C asn.1 uninstall
    50 
    51 clean:
    52 	$(MAKE) -C src clean
    53 	$(MAKE) -C test clean
    54 	$(MAKE) -C db clean
    55 	$(MAKE) -C asn.1 clean
    56 	$(MAKE) -C sync clean
    57 	$(MAKE) -C build-android clean
    58 
    59 tags:
    60 	$(MAKE) -C asn.1 tags
    61 	$(MAKE) -C src tags
    62 
    63 test: all
    64 	$(MAKE) -C test test
    65 
    66 package: clean
    67 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    68 
    69 db:
    70 	$(MAKE) -C db db