Makefile
author Hernâni Marques <hernani@pep.foundation>
Wed, 14 Dec 2016 17:27:30 +0100
changeset 1489 e1a35c0169c0
parent 878 9ab0833d2c8b
child 1178 335ac741184f
child 1513 e7f7e42385b5
permissions -rw-r--r--
small typos (comments)
vb@1
     1
include Makefile.conf
vb@1
     2
roker@878
     3
# add it to the environment of all executed programs:
roker@878
     4
export YML_PATH
roker@878
     5
roker@878
     6
vb@1
     7
all:
vb@637
     8
	$(MAKE) -C asn.1 generate
vb@637
     9
	$(MAKE) -C asn.1
vb@742
    10
	$(MAKE) -C sync
vb@1
    11
	$(MAKE) -C src all
vb@1
    12
vb@364
    13
.PHONY: clean build_test test package install uninstall db
vb@1
    14
vb@637
    15
install: all
vb@1
    16
	$(MAKE) -C src install
vb@1
    17
vb@1
    18
uninstall:
vb@1
    19
	$(MAKE) -C src uninstall
vb@1
    20
vb@1
    21
clean:
vb@1
    22
	$(MAKE) -C src clean
vb@1
    23
	$(MAKE) -C test clean
vb@364
    24
	$(MAKE) -C db clean
vb@810
    25
	$(MAKE) -C sync clean
vb@637
    26
	$(MAKE) -C asn.1 clean
vb@1
    27
vb@1
    28
test: all
vb@1
    29
	$(MAKE) -C test test
vb@151
    30
	$(MAKE) -C test unit_tests
vb@1
    31
vb@87
    32
unit_tests: all
vb@87
    33
	$(MAKE) -C test unit_tests
vb@55
    34
vb@1
    35
package: clean
vb@37
    36
	cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine
vb@1
    37
vb@364
    38
db:
vb@364
    39
	$(MAKE) -C db db
vb@364
    40
vb@1
    41
windist:
vb@1
    42
ifneq ($(BUILD_FOR),Windoze)
vb@1
    43
	@echo use BUILD_FOR=Windoze \(did you forget -e ?\)
vb@1
    44
else
vb@1
    45
	make clean
vb@1
    46
	$(MAKE) all
vb@1
    47
	$(MAKE) -C test all
vb@1
    48
	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
    49
endif
vb@1
    50