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