Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 20 Jun 2019 17:45:56 +0200
branchsync
changeset 3864 fdc5f7c757e1
parent 3651 f22ed667bb0d
child 3677 51c4944d6257
permissions -rw-r--r--
removed old file
     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 dbinstall: db
    41 	$(MAKE) -C db install
    42 
    43 uninstall:
    44 	$(MAKE) -C src uninstall
    45 	$(MAKE) -C asn.1 uninstall
    46 
    47 clean:
    48 	$(MAKE) -C src clean
    49 	$(MAKE) -C test clean
    50 	$(MAKE) -C db clean
    51 	$(MAKE) -C sync clean
    52 	$(MAKE) -C asn.1 clean
    53 
    54 tags:
    55 	$(MAKE) -C asn.1 tags
    56 	$(MAKE) -C src tags
    57 
    58 test: all
    59 	$(MAKE) -C test test
    60 
    61 package: clean
    62 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    63 
    64 db:
    65 	$(MAKE) -C db db