Makefile
author Damiano Boppart <damiano@pep-security.net>
Fri, 11 Aug 2017 01:02:14 +0200
branchENGINE-228
changeset 1949 8e0514c0ba2d
parent 1919 335cdc692960
child 1950 94b1fad41c43
permissions -rw-r--r--
Clean up Makefile
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@1949
     6
# add YML_PATH to the environment of all executed programs
roker@878
     7
export YML_PATH
roker@878
     8
damiano@1949
     9
HERE_REL := $(notdir $(CURDIR))
roker@878
    10
damiano@1949
    11
.PHONY: all
vb@1
    12
all:
vb@637
    13
	$(MAKE) -C asn.1 generate
vb@637
    14
	$(MAKE) -C asn.1
vb@742
    15
	$(MAKE) -C sync
vb@1
    16
	$(MAKE) -C src all
vb@1
    17
damiano@1949
    18
.PHONY: install
vb@637
    19
install: all
vb@1
    20
	$(MAKE) -C src install
damiano@1919
    21
	$(MAKE) -C asn.1 install
vb@1
    22
damiano@1949
    23
.PHONY: uninstall
vb@1
    24
uninstall:
vb@1
    25
	$(MAKE) -C src 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