Makefile
author Krista Bennett <krista@pep-project.org>
Tue, 01 Aug 2017 16:40:24 +0200
branchmessage-2.0
changeset 1979 3d0a778d035a
parent 1919 335cdc692960
child 1949 8e0514c0ba2d
child 1988 ea7bceda4dc8
permissions -rw-r--r--
Changed name to ENGINE-214 for JIRA tracking - please use that branch instead.
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
roker@878
     6
# add it to the environment of all executed programs:
roker@878
     7
export YML_PATH
roker@878
     8
roker@878
     9
vb@1
    10
all:
vb@637
    11
	$(MAKE) -C asn.1 generate
vb@637
    12
	$(MAKE) -C asn.1
vb@742
    13
	$(MAKE) -C sync
vb@1
    14
	$(MAKE) -C src all
vb@1
    15
vb@364
    16
.PHONY: clean build_test test package install uninstall db
vb@1
    17
vb@637
    18
install: all
vb@1
    19
	$(MAKE) -C src install
damiano@1919
    20
	$(MAKE) -C asn.1 install
vb@1
    21
vb@1
    22
uninstall:
vb@1
    23
	$(MAKE) -C src uninstall
vb@1
    24
vb@1
    25
clean:
vb@1
    26
	$(MAKE) -C src clean
vb@1
    27
	$(MAKE) -C test clean
vb@364
    28
	$(MAKE) -C db clean
vb@810
    29
	$(MAKE) -C sync clean
vb@637
    30
	$(MAKE) -C asn.1 clean
vb@1
    31
vb@1
    32
test: all
vb@1
    33
	$(MAKE) -C test test
vb@151
    34
	$(MAKE) -C test unit_tests
vb@1
    35
vb@87
    36
unit_tests: all
vb@87
    37
	$(MAKE) -C test unit_tests
vb@55
    38
vb@1
    39
package: clean
vb@37
    40
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    41
vb@364
    42
db:
vb@364
    43
	$(MAKE) -C db db
vb@364
    44
vb@1
    45
windist:
vb@1
    46
ifneq ($(BUILD_FOR),Windoze)
vb@1
    47
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    48
else
vb@1
    49
	make clean
vb@1
    50
	$(MAKE) all
vb@1
    51
	$(MAKE) -C test all
vb@1
    52
	zip -j pEpEngine-dist.zip src/pEpEngine.h src/keymanagement.h src/pEpEngine.dll src/pEpEngine.def test/pEpEngineTest.exe test/*.asc test/*.key db/*.db test/*.txt test/*.asc src/*.sql
vb@1
    53
endif
vb@1
    54