Makefile
author Damiano Boppart <damiano@pep-security.net>
Mon, 14 Aug 2017 02:26:09 +0200
branchENGINE-228
changeset 1958 433df9ee336d
parent 1955 8ec0b81a659f
child 1960 3e0027330faa
permissions -rw-r--r--
More Makefile cleanup
damiano@1958
     1
# Copyright 2017, pEp Security SA
damiano@1958
     2
# This file is part of pEpEngine
damiano@1958
     3
# This file may be used under the terms of the GNU General Public License version 3
vb@1513
     4
# see LICENSE.txt
vb@1513
     5
vb@1
     6
include Makefile.conf
vb@1
     7
damiano@1955
     8
export YML2_PATH
roker@878
     9
damiano@1949
    10
HERE_REL := $(notdir $(CURDIR))
roker@878
    11
damiano@1949
    12
.PHONY: all
vb@1
    13
all:
vb@637
    14
	$(MAKE) -C asn.1 generate
vb@637
    15
	$(MAKE) -C asn.1
vb@742
    16
	$(MAKE) -C sync
vb@1
    17
	$(MAKE) -C src all
vb@1
    18
damiano@1949
    19
.PHONY: install
vb@637
    20
install: all
vb@1
    21
	$(MAKE) -C src install
damiano@1919
    22
	$(MAKE) -C asn.1 install
vb@1
    23
damiano@1949
    24
.PHONY: uninstall
vb@1
    25
uninstall:
vb@1
    26
	$(MAKE) -C src uninstall
damiano@1950
    27
	$(MAKE) -C asn.1 uninstall
vb@1
    28
damiano@1949
    29
.PHONY: clean
vb@1
    30
clean:
vb@1
    31
	$(MAKE) -C src clean
vb@1
    32
	$(MAKE) -C test clean
vb@364
    33
	$(MAKE) -C db clean
vb@810
    34
	$(MAKE) -C sync clean
vb@637
    35
	$(MAKE) -C asn.1 clean
vb@1
    36
damiano@1949
    37
.PHONY: test
vb@1
    38
test: all
vb@1
    39
	$(MAKE) -C test test
vb@151
    40
	$(MAKE) -C test unit_tests
vb@1
    41
damiano@1949
    42
.PHONY: unit_tests
vb@87
    43
unit_tests: all
vb@87
    44
	$(MAKE) -C test unit_tests
vb@55
    45
damiano@1949
    46
.PHONY: package
vb@1
    47
package: clean
damiano@1949
    48
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    49
damiano@1949
    50
.PHONY: db
vb@364
    51
db:
vb@364
    52
	$(MAKE) -C db db