Makefile
author Volker Birk <vb@pep-project.org>
Tue, 31 Mar 2020 12:51:11 +0200
branchgenerate_api
changeset 4511 707539990027
parent 4442 77be8101fcc6
permissions -rw-r--r--
...
     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 
    58 tags:
    59 	$(MAKE) -C asn.1 tags
    60 	$(MAKE) -C src tags
    61 
    62 test: all
    63 	$(MAKE) -C test test
    64 
    65 package: clean
    66 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    67 
    68 db:
    69 	$(MAKE) -C db db