Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 01 Apr 2019 22:29:08 +0200
branchmake-cleanup
changeset 3428 ca6dc81d3f7f
parent 3207 d2d75fbc0b09
child 3444 b02aedcd6a50
permissions -rw-r--r--
Assign sequoia vars
     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
    23 all:
    24 	$(MAKE) -C sync
    25 	$(MAKE) -C asn.1
    26 	$(MAKE) -C src all
    27 
    28 .PHONY: install
    29 install: all
    30 	$(MAKE) -C src install
    31 	$(MAKE) -C asn.1 install
    32 
    33 .PHONY: dbinstall
    34 dbinstall: db
    35 	$(MAKE) -C db install
    36 
    37 .PHONY: uninstall
    38 uninstall:
    39 	$(MAKE) -C src uninstall
    40 	$(MAKE) -C asn.1 uninstall
    41 
    42 .PHONY: clean
    43 clean:
    44 	$(MAKE) -C src clean
    45 	$(MAKE) -C test clean
    46 	$(MAKE) -C db clean
    47 	$(MAKE) -C sync clean
    48 	$(MAKE) -C asn.1 clean
    49 
    50 .PHONY: tags
    51 tags:
    52 	$(MAKE) -C asn.1 tags
    53 	$(MAKE) -C src tags
    54 
    55 .PHONY: test
    56 test: all
    57 	$(MAKE) -C test test
    58 
    59 .PHONY: package
    60 package: clean
    61 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    62 
    63 .PHONY: db
    64 db:
    65 	$(MAKE) -C db db