Makefile
author Volker Birk <vb@pep-project.org>
Wed, 08 May 2019 16:41:10 +0200
branchENGINE-550
changeset 3653 b00047c994f6
parent 3608 dbcb24324e86
child 3651 f22ed667bb0d
permissions -rw-r--r--
suggestion
     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 ifneq ($(MAKE_VERSION),$(word 2,$(sort $(MAKE_VERSION) 4)))
    23     $(warning ================================================)
    24     $(warning You are using a make version older than 4. This might cause problems.)
    25     $(warning ================================================)
    26 endif
    27 
    28 
    29 .PHONY: all sync asn1 build install dbinstall uninstall clean tags test package db
    30 
    31 build: asn1
    32 	$(MAKE) -C src
    33 
    34 all: build
    35 	make -C test
    36 
    37 sync:
    38 	$(MAKE) -C sync
    39 
    40 asn1: sync
    41 	$(MAKE) -C asn.1
    42 
    43 install: build
    44 	$(MAKE) -C src install
    45 	$(MAKE) -C asn.1 install
    46 
    47 dbinstall: db
    48 	$(MAKE) -C db install
    49 
    50 uninstall:
    51 	$(MAKE) -C src uninstall
    52 	$(MAKE) -C asn.1 uninstall
    53 
    54 clean:
    55 	$(MAKE) -C src clean
    56 	$(MAKE) -C test clean
    57 	$(MAKE) -C db clean
    58 	$(MAKE) -C sync clean
    59 	$(MAKE) -C asn.1 clean
    60 
    61 tags:
    62 	$(MAKE) -C asn.1 tags
    63 	$(MAKE) -C src tags
    64 
    65 test: all
    66 	$(MAKE) -C test test
    67 
    68 package: clean
    69 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    70 
    71 db:
    72 	$(MAKE) -C db db