Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 22 Aug 2017 15:34:17 +0200
changeset 1988 ea7bceda4dc8
parent 1919 335cdc692960
child 1989 d3e5bc4a9854
permissions -rw-r--r--
Rolled back to revision 1982. Sorry all, checked in wrong branch to default
krista@1988
     1
# Copyright 2017, pEp Foundation
krista@1988
     2
# This file is part of pEpEngine
krista@1988
     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
krista@1988
     6
HERE_REL := $(notdir $(CURDIR))
krista@1988
     7
vb@1
     8
include Makefile.conf
vb@1
     9
krista@1988
    10
# YML_PATH is needed in the environment of every call to a program of the YML2 distribution
krista@1988
    11
export YML_PATH=$(YML2_PATH)
roker@878
    12
krista@1988
    13
.PHONY: all
vb@1
    14
all:
vb@637
    15
	$(MAKE) -C asn.1 generate
vb@637
    16
	$(MAKE) -C asn.1
vb@742
    17
	$(MAKE) -C sync
vb@1
    18
	$(MAKE) -C src all
vb@1
    19
krista@1988
    20
.PHONY: install
vb@637
    21
install: all
vb@1
    22
	$(MAKE) -C src install
damiano@1919
    23
	$(MAKE) -C asn.1 install
vb@1
    24
krista@1988
    25
.PHONY: uninstall
vb@1
    26
uninstall:
vb@1
    27
	$(MAKE) -C src uninstall
krista@1988
    28
	$(MAKE) -C asn.1 uninstall
vb@1
    29
krista@1988
    30
.PHONY: clean
vb@1
    31
clean:
vb@1
    32
	$(MAKE) -C src clean
vb@1
    33
	$(MAKE) -C test clean
vb@364
    34
	$(MAKE) -C db clean
vb@810
    35
	$(MAKE) -C sync clean
vb@637
    36
	$(MAKE) -C asn.1 clean
vb@1
    37
krista@1988
    38
.PHONY: test
vb@1
    39
test: all
vb@1
    40
	$(MAKE) -C test test
vb@151
    41
	$(MAKE) -C test unit_tests
vb@1
    42
krista@1988
    43
.PHONY: unit_tests
vb@87
    44
unit_tests: all
vb@87
    45
	$(MAKE) -C test unit_tests
vb@55
    46
krista@1988
    47
.PHONY: package
vb@1
    48
package: clean
krista@1988
    49
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 "$(HERE_REL)"
vb@1
    50
krista@1988
    51
.PHONY: db
vb@364
    52
db:
vb@364
    53
	$(MAKE) -C db db