Makefile
author Damiano Boppart <damiano@pep-security.net>
Tue, 15 Aug 2017 00:07:09 +0000
branchENGINE-228
changeset 1962 b88394894238
parent 1960 3e0027330faa
child 1963 35d308e437cf
permissions -rw-r--r--
Fix some Makefile bugs
     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 export BUILD_CONFIG:=$(CURDIR)/build-config
     7 include Makefile.conf
     8 
     9 export YML2_PATH
    10 
    11 HERE_REL := $(notdir $(CURDIR))
    12 
    13 .PHONY: all
    14 all:
    15 	$(MAKE) -C asn.1 generate
    16 	$(MAKE) -C asn.1
    17 	$(MAKE) -C sync
    18 	$(MAKE) -C src all
    19 
    20 .PHONY: install
    21 install: all
    22 	$(MAKE) -C src install
    23 	$(MAKE) -C asn.1 install
    24 
    25 .PHONY: uninstall
    26 uninstall:
    27 	$(MAKE) -C src uninstall
    28 	$(MAKE) -C asn.1 uninstall
    29 
    30 .PHONY: clean
    31 clean:
    32 	$(MAKE) -C src clean
    33 	$(MAKE) -C test clean
    34 	$(MAKE) -C db clean
    35 	$(MAKE) -C sync clean
    36 	$(MAKE) -C asn.1 clean
    37 
    38 .PHONY: test
    39 test: all
    40 	$(MAKE) -C test test
    41 	$(MAKE) -C test unit_tests
    42 
    43 .PHONY: unit_tests
    44 unit_tests: all
    45 	$(MAKE) -C test unit_tests
    46 
    47 .PHONY: package
    48 package: clean
    49 	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
    50 
    51 .PHONY: db
    52 db:
    53 	$(MAKE) -C db db